Android system-based page caching method, apparatus and device, and storage medium

A technology of page caching and page, applied in the field of page caching method, device, equipment and storage medium based on Android system, can solve problems of inability to take into account caching space, effective utilization of system resources, moderate overhead, increase of system memory resource consumption, and page caching capacity Insufficient and other problems, to achieve the effect of improving effective utilization, improving user experience, and improving display speed

Active Publication Date: 2018-10-19
WUHAN DOUYU NETWORK TECH CO LTD
View PDF13 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, for the situation where only 1 or 2 pages need to be cached, there will be 2 or 1 page cache space idle
For the situation where more than 3 pages need to be cached, due to insufficient page cache capacity, it is necessary to destroy the cached pages and re-cache the uncached pages. If there are too many pages exceeding the page cache capacity, it is necessary to continuously cycle the

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
  • Android system-based page caching method, apparatus and device, and storage medium
  • Android system-based page caching method, apparatus and device, and storage medium
  • Android system-based page caching method, apparatus and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0026] Embodiment one

[0027] The page caching method based on the Android system provided in this embodiment is applicable to the situation where the number of pages in the Android client changes dynamically. The method can be performed by a page caching device based on the Android system, which can be implemented by software and / or hardware, and which can be integrated in a device with the Android system installed, such as a typical user terminal device, such as a smart phone or tablet etc. see figure 1 , the method of this implementation specifically includes the following steps:

[0028] S110. Acquire the pages to be cached, and compare the first number of pages corresponding to the pages to be cached with the second number of pages corresponding to the cached pages.

[0029] Wherein, the page to be cached refers to the page to be cached relative to the currently cached page, and its number changes dynamically according to the running state of the application software ...

Example Embodiment

[0050] Embodiment two

[0051] On the basis of the above-mentioned first embodiment, this embodiment describes in detail the scheme of adjusting the capacity of the cache pool on demand, specifically, "if the number of the first page is greater than the number of the second page, then according to the preset capacity expansion rule, increase the cache capacity." Pool Capacity" has been further optimized. On this basis, it is also possible to further optimize "if the number of the first page is less than the number of the second page, then reduce the capacity of the buffer pool according to the preset capacity reduction rule". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see figure 2 , the Android system-based page caching method provided in this embodiment includes:

[0052] S210. Acquire the pages to be cached, and compare the first number of pages corresponding to the pages to be cached with...

Example Embodiment

[0070] Embodiment three

[0071] On the basis of the first embodiment above, this embodiment describes in detail the scheme for dynamically adjusting the capacity of the buffer pool. Specifically, "if the number of the first pages is greater than the number of the second pages, then increase the size of the buffer pool according to the preset capacity expansion rule." Capacity" has been further optimized. On this basis, it is also possible to further optimize "if the number of the first page is less than the number of the second page, then reduce the capacity of the buffer pool according to the preset capacity reduction rule". The explanations of terms that are the same as or corresponding to the above-mentioned embodiments will not be repeated here. see image 3 , the Android system-based page caching method provided in this embodiment includes:

[0072] S310. Acquire the pages to be cached, and compare the first number of pages corresponding to the pages to be cached with...

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

Embodiments of the invention disclose an Android system-based page caching method, apparatus and device, and a storage medium. The method comprises the steps of obtaining to-be-cached pages, and comparing a first page quantity corresponding to the to-be-cached pages with a second page quantity corresponding to cached pages; according to a comparison result, adjusting cache pool capacity of a pagecache pool based on a preset capacity adjustment rule; and caching the to-be-cached pages to the page cache pool. Through the technical scheme, an Android client dynamically adjusts the page cache pool capacity in an Android system according to the page quantity of the to-be-cached pages, so that the effective utilization rate of a cache space in the Android client is improved, the resource overhead of the system is reduced, the page display speed is increased, and the user experience is improved.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to an Android system-based page caching method, device, device, and storage medium. Background technique [0002] Usually, in order to speed up the loading speed of the display page of the client equipped with the Android system (referred to as the Android client, such as a smart phone), a cache space will be set in the Android client to cache the data obtained from the server or local storage space. page, so that the Android client loads the cached page directly from the cache space when reloading, without retrieving it from the server or local storage space. [0003] In the existing setting of the cache space, the page cache capacity of the cache space is usually set to a fixed value, for example, the page cache capacity is set to be able to cache 3 pages. At this time, for the situation that only 1 or 2 pages need to be cached, there will be 2 or 1 page cache spac...

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
IPC IPC(8): G06F9/445
CPCG06F9/44578
Inventor 张磊张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products