Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for page caching

A page caching and page technology, applied in the field of page caching methods and devices, can solve problems affecting page switching speed, unpredictable page cache destruction time, limited cache resources, etc., to improve user experience, increase average loading speed and page switching The effect of speed and efficient utilization

Active Publication Date: 2019-09-10
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method cannot predict the page cache destruction time. When the user needs to switch to a certain page, the page may have been destroyed by the operating system
The second is that users use the first-in-first-out queue algorithm to cache pages. Due to limited cache resources, this method takes a long time to render complex pages, which will seriously affect the page switching speed.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for page caching
  • Method and device for page caching
  • Method and device for page caching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a flow chart of a page caching method provided by Embodiment 1 of the present invention. This embodiment is applicable to the caching of mobile terminal application program pages. The method can be executed by a page caching device, and the device can use hardware and / or implemented in software, the method specifically includes the following operations:

[0023] S110. Obtain historical access state data of the page currently accessed by the terminal.

[0024] The historical access status data of the page currently accessed by the terminal reflects the user's page access habits, and may also reflect the differences in user habits. There are more and more functions on the existing terminal applications, but for a certain user, there may not be many functions used. For example, in map applications, users who often travel may use more pages of hotels and routes; Users with cars may use more navigation and route pages; some users may often open the bus page...

Embodiment 2

[0037] figure 2 It is a flow chart of a page caching method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the method includes:

[0038] S210. Obtain historical access state data of the page currently accessed by the terminal.

[0039] S220. Calculate the priority value of the currently accessed page according to the historical access status data of the currently accessed page.

[0040]S230. When the free cache resources in the cache area are less than the resources of the currently accessed page, compare the priority value of the currently accessed page with the priority value of the cached pages in the cache area, and release In the cache area, at least one cache page with a priority value smaller than the priority value of the currently accessed page is preferred, and resources of the currently accessed page are added to the cache area.

[0041] When the free cache resources of the cache area are less than the resources of the currently a...

Embodiment 3

[0049] image 3 It is a schematic diagram of the mechanism and principle of a page caching method provided by Embodiment 3 of the present invention, as shown in image 3 As shown, when a user accesses a page using a terminal, the historical access state data of each page accessed by the user, such as the page access frequency An and the average rendering time Tn of each page, is recorded and stored locally. Then calculate the priority value Qn=An*Tn of the page according to the frequency An of using the page by the user and the average rendering time Tn of the page, where n is a positive integer. Execute the caching strategy, give priority to caching pages with high priority values, and release pages with low priority values ​​when the cache resources in the cache area are insufficient. When the user switches pages, the query in the cache area hits the corresponding cache page and directly accesses the hit cache page.

[0050] In the embodiment of the present invention, the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a page cache method and device; the method comprises the following steps: obtaining history access state data of a terminal present access page; calculating present access page priority value according to the history access state data of the present access page; determining a cache region cache page according to the present access page priority value and cache region idle cache resources. The method can cache pages according to different user habits, can effectively utilize limited cache region resources, thus improving page average loading speed and page switching speed, and improving user experiences.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and in particular, to a page caching method and device. Background technique [0002] At present, various applications in mobile terminals are becoming more and more diverse, and the layout of application pages is becoming more and more complex. When users use more and more pages, the running performance of applications is getting lower and lower, which is mainly reflected in the increasing memory usage. The bigger it is, the slower and slower the page switching will be. [0003] In the prior art, there are mainly two methods to solve the problem of slow page switching speed. One is to directly push the page into the system page stack, and the operating system of the mobile terminal maintains the cache of the page, and the operating system will destroy some pages when the system resources are insufficient. to release resources. However, this method cannot predict...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/957
Inventor 谢海洋
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More