CN101320353A - Design method of embedded type browser caching - Google Patents
Design method of embedded type browser caching Download PDFInfo
- Publication number
- CN101320353A CN101320353A CNA2008103027852A CN200810302785A CN101320353A CN 101320353 A CN101320353 A CN 101320353A CN A2008103027852 A CNA2008103027852 A CN A2008103027852A CN 200810302785 A CN200810302785 A CN 200810302785A CN 101320353 A CN101320353 A CN 101320353A
- Authority
- CN
- China
- Prior art keywords
- cache
- buffer
- space
- data
- buffer area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The present invention relates to the embedded technical field, in particular to an embedded browser cache designing method. The present invention provides an embedded browser cache designing method which can arrange cache data reasonably. In the key points of a technical proposal, firstly, a cache area is established in a memory and is divided into cache sub-areas; secondly, every kind of cache data is sorted and cached to be memorized in different cache sub-areas; thirdly, when new data enters into the cache area, whether the cache area space is sufficient is judged; fourthly, when the cache space is sufficient, the new data in third step is memorized in the cache sub-area of the sort; when the cache space is insufficient, partial cache area space is released according to a releasing order, and then the new data is cached. The embedded browser cache designing method reduces the consumption of system resource, improves the embedded browser cache invoking velocity, improves the browsing speed further and is fit for designing the cache of the embedded browser.
Description
Technical field
The present invention relates to field of embedded technology, relate in particular to a kind of design method of embedded type browser caching.
Background technology
Buffer memory is promptly temporarily stored the information of user capture in this locality, to improve the speed of user when visiting relevant information once more.Operations such as " advancing " that the user carries out in browser " retreats " in fact are exactly to be buffered in to work, so can give the very fast sensation of a kind of visit of user.Buffer memory is provided with too for a short time, and the data message amount that can deposit is just little, and so most of data still will make surfing descend from the network download of getting on; Buffer memory is provided with too greatly, consume system resources too again, and this is fatal weakness under embedded environment, and browser need seek the file that needs in various cache file, and is more consuming time, even slower than going on the network speed of download.So buffer memory is provided with whether rationally, greatly affect the performance performance of built-in browser integral body.In the embedded type browser caching design of the prior art, in data cached certain fixing file that is kept in the hard disk, when browser startup next time, these data cached not being released are so just compared consume system resources; And embedded type browser caching design of the prior art is not to all kinds of data cached buffer memorys of classifying, commonly used data cached and be of little use data cachedly all have a same subregion, can cause like this browser search need data cached the time waste plenty of time.
Summary of the invention
Technical matters to be solved by this invention is: propose the data cached design method of embedded type browser caching of a kind of energy reasonable disposition.
The technical scheme that the present invention solves the problems of the technologies described above employing is: design method of embedded type browser caching may further comprise the steps:
A. in internal memory, set up buffer area, and divide cache partitions;
B. to all kinds of data cached buffer memorys of classifying, deposit different cache partitions respectively in;
When c. having new data to enter buffer area, judge whether the buffer area space is enough;
When d. spatial cache is enough, data new among the above-mentioned steps c are deposited in the cache partitions of classification under it; During inadequate buffer space,, newer data are carried out buffer memory according to release order release portion buffer area space.
Release is in proper order in the described steps d: discharge the picture category buffer memory earlier, if the buffer area space is still not enough, discharge HTML (HTML (Hypertext Markup Language)) class buffer memory again, if the buffer area space is still not enough, discharge CSS/JS (CSS (cascading style sheet)) class buffer memory at last.
The invention has the beneficial effects as follows: reduced the consumption of system resource, improved embedded type browser caching and call speed, and then improved surfing.
Embodiment
The invention will be further described below in conjunction with embodiment.
The present invention is with respect to prior art, to the data cached classification buffer memory that carried out, so calling commonly usedly when data cached, do not need too much search, saved the time; Moreover buffer area is based upon in the internal memory, when the user closes built-in browser, data cachedly just being cleared, spatial cache is released; Relatively prior art is based upon buffer area in the hard disk and can not in time discharges spatial cache, has saved system resource.
Embodiment:
At first in internal memory, set up buffer area, and divide cache partitions, comprise mainly that here three classes are data cached: the picture file in outside CSS/JS script defined file, generic web page code, the webpage according to data cached different data structure.To the data cached buffer memory of classifying of this four class, deposit different cache partitions respectively in.In buffer memory, can carry out the selectivity buffer memory according to the difference of the data cached recycling rate of waterused of these several classes:
(1) outside CSS/JS script defined file (.css/.js):
This class file is reused the rate height, is the hot file of buffer memory.For CSS/JS class data, the mode of employing log file number limits the size of buffer memory, promptly no matter how many spaces its each file takies, log file number, buffer memory can be set to be add up to about 12, can can store 12 these class files (all no more than this quantity of the .css/.js file under the common embedded EPG, and this class file all is text message, do not limit the buffer memory number of texts so do not limit total space) so altogether.In addition, also the expansion download function can be added, promptly after obtaining the path at outside .css/.js file place for the first time, the folder path of placing this document can be write down.Usually webpage making all be with the .css/.js document storage under same path, we can utilize this characteristic, search for .css and .js file under this path, are downloaded in the buffer area standbyly the browser free time, can improve user's surfing greatly.
(2) generic web page code (HTML ...):
Because the embedded web page size of code is little, it is not very big obtaining cost from network, therefore need not distribute bigger space to the cache partitions of these type of data.In the time of the cache partitions insufficient space, will more early be pressed into the data cached release of stack.
(3) picture file (.gif/jpg/png in the webpage ...):
In built-in browser, the download of picture is the most consuming time, need be as the emphasis of buffer memory.
Because the pictorial information amount is huge,, specifically then decide at the hardware resource situation so need restriction image cache occupation space total value.Promptly add when every pictures is downloaded for the first time in the image cache, defining variable is counted the number of times that this picture is cited simultaneously.After had expired in the space in image cache district, the picture of least number of times was quoted in the statistics deletion, to discharge picture buffer area space.
For the present invention, as new data cached when entering buffer area, judge at first whether the buffer area space is enough; When spatial cache is enough, just new data are deposited in the cache partitions of its affiliated classification; During inadequate buffer space, need release portion buffer area space, because picture/mb-type data recycling rate of waterused is minimum, the just preferential picture category buffer memory that discharges, if the buffer area space is still not enough, discharge the high slightly HTML class buffer memory of recycling rate of waterused again,, discharge the highest CSS/JS class buffer memory of recycling rate of waterused at last if the buffer area space is still not enough.
Claims (2)
1. embedded buffer memory method for designing design method of embedded type browser caching is characterized in that: may further comprise the steps:
A. in internal memory, set up buffer area, and divide cache partitions;
B. to all kinds of data cached buffer memorys of classifying, deposit different cache partitions respectively in;
When c. having new data to enter buffer area, judge whether the buffer area space is enough;
When d. spatial cache is enough, data new among the above-mentioned steps c are deposited in the cache partitions of classification under it; During inadequate buffer space,, newer data are carried out buffer memory according to release order release portion buffer area space.
2. design method of embedded type browser caching as claimed in claim 1, it is characterized in that: release is in proper order in the described steps d: discharge the picture category buffer memory earlier, if the buffer area space is still not enough, discharge HTML class buffer memory again, if the buffer area space is still not enough, discharge CSS/JS class buffer memory at last.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103027852A CN101320353A (en) | 2008-07-18 | 2008-07-18 | Design method of embedded type browser caching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008103027852A CN101320353A (en) | 2008-07-18 | 2008-07-18 | Design method of embedded type browser caching |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101320353A true CN101320353A (en) | 2008-12-10 |
Family
ID=40180412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008103027852A Pending CN101320353A (en) | 2008-07-18 | 2008-07-18 | Design method of embedded type browser caching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101320353A (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710327A (en) * | 2009-12-04 | 2010-05-19 | 深圳创维数字技术股份有限公司 | Method for caching local temporary files into embedded browser |
CN102354301A (en) * | 2011-09-23 | 2012-02-15 | 浙江大学 | Cache partitioning method |
CN102782683A (en) * | 2010-03-04 | 2012-11-14 | 微软公司 | Buffer pool extension for database server |
CN102880616A (en) * | 2011-07-15 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Browser page loading method and device |
CN103412825A (en) * | 2013-05-21 | 2013-11-27 | 青岛海信移动通信技术股份有限公司 | Internal storage releasing method and device |
CN103442000A (en) * | 2013-08-22 | 2013-12-11 | 北京星网锐捷网络技术有限公司 | Method and device for replacing WEB caches and HTTP proxy server |
WO2014019358A1 (en) * | 2012-07-28 | 2014-02-06 | 深圳市同洲电子股份有限公司 | Method, system and browser for distributing hybrid memory |
CN103634231A (en) * | 2013-12-02 | 2014-03-12 | 江苏大学 | Content popularity-based CCN cache partition and substitution method |
CN103631891A (en) * | 2013-11-15 | 2014-03-12 | 北京奇虎科技有限公司 | Method for processing browser disk caching and browser |
CN104156233A (en) * | 2014-07-21 | 2014-11-19 | 小米科技有限责任公司 | Method, device and terminal for updating light applications in offline manner |
CN104967807A (en) * | 2014-12-30 | 2015-10-07 | 浙江大华技术股份有限公司 | Caching method and apparatus |
US9235531B2 (en) | 2010-03-04 | 2016-01-12 | Microsoft Technology Licensing, Llc | Multi-level buffer pool extensions |
CN105447037A (en) * | 2014-08-29 | 2016-03-30 | 优视科技有限公司 | Caching clearing method and device |
CN105988806A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for releasing cache and mobile terminal |
US9672026B2 (en) | 2014-07-21 | 2017-06-06 | Xiaomi Inc. | Light app offline updating method, device and terminal |
CN109960662A (en) * | 2017-12-25 | 2019-07-02 | 华为技术有限公司 | A kind of method for recovering internal storage and equipment |
CN111159232A (en) * | 2019-12-16 | 2020-05-15 | 浙江中控技术股份有限公司 | Data caching method and system |
CN111339210A (en) * | 2018-12-18 | 2020-06-26 | 杭州海康威视数字技术股份有限公司 | Data clustering method and device |
-
2008
- 2008-07-18 CN CNA2008103027852A patent/CN101320353A/en active Pending
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710327A (en) * | 2009-12-04 | 2010-05-19 | 深圳创维数字技术股份有限公司 | Method for caching local temporary files into embedded browser |
CN102782683A (en) * | 2010-03-04 | 2012-11-14 | 微软公司 | Buffer pool extension for database server |
US9235531B2 (en) | 2010-03-04 | 2016-01-12 | Microsoft Technology Licensing, Llc | Multi-level buffer pool extensions |
US9069484B2 (en) | 2010-03-04 | 2015-06-30 | Microsoft Technology Licensing, Llc | Buffer pool extension for database server |
US8712984B2 (en) | 2010-03-04 | 2014-04-29 | Microsoft Corporation | Buffer pool extension for database server |
CN102880616A (en) * | 2011-07-15 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Browser page loading method and device |
CN102880616B (en) * | 2011-07-15 | 2016-02-17 | 腾讯科技(深圳)有限公司 | browser page loading method and device |
CN102354301B (en) * | 2011-09-23 | 2014-03-19 | 浙江大学 | Cache partitioning method |
CN102354301A (en) * | 2011-09-23 | 2012-02-15 | 浙江大学 | Cache partitioning method |
WO2014019358A1 (en) * | 2012-07-28 | 2014-02-06 | 深圳市同洲电子股份有限公司 | Method, system and browser for distributing hybrid memory |
CN103412825A (en) * | 2013-05-21 | 2013-11-27 | 青岛海信移动通信技术股份有限公司 | Internal storage releasing method and device |
CN103412825B (en) * | 2013-05-21 | 2016-12-28 | 青岛海信移动通信技术股份有限公司 | A kind of memory release method and device |
CN103442000A (en) * | 2013-08-22 | 2013-12-11 | 北京星网锐捷网络技术有限公司 | Method and device for replacing WEB caches and HTTP proxy server |
CN103442000B (en) * | 2013-08-22 | 2016-08-10 | 北京星网锐捷网络技术有限公司 | WEB caching replacement method and device, http proxy server |
CN103631891A (en) * | 2013-11-15 | 2014-03-12 | 北京奇虎科技有限公司 | Method for processing browser disk caching and browser |
CN103634231A (en) * | 2013-12-02 | 2014-03-12 | 江苏大学 | Content popularity-based CCN cache partition and substitution method |
US9672026B2 (en) | 2014-07-21 | 2017-06-06 | Xiaomi Inc. | Light app offline updating method, device and terminal |
CN104156233A (en) * | 2014-07-21 | 2014-11-19 | 小米科技有限责任公司 | Method, device and terminal for updating light applications in offline manner |
CN105447037A (en) * | 2014-08-29 | 2016-03-30 | 优视科技有限公司 | Caching clearing method and device |
CN104967807A (en) * | 2014-12-30 | 2015-10-07 | 浙江大华技术股份有限公司 | Caching method and apparatus |
CN105988806A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for releasing cache and mobile terminal |
CN105988806B (en) * | 2015-02-12 | 2019-04-02 | Oppo广东移动通信有限公司 | A kind of method and mobile terminal of release caching |
CN109960662A (en) * | 2017-12-25 | 2019-07-02 | 华为技术有限公司 | A kind of method for recovering internal storage and equipment |
CN109960662B (en) * | 2017-12-25 | 2021-10-01 | 华为技术有限公司 | Memory recovery method and device |
CN111339210A (en) * | 2018-12-18 | 2020-06-26 | 杭州海康威视数字技术股份有限公司 | Data clustering method and device |
CN111339210B (en) * | 2018-12-18 | 2023-04-28 | 杭州海康威视数字技术股份有限公司 | Data clustering method and device |
CN111159232A (en) * | 2019-12-16 | 2020-05-15 | 浙江中控技术股份有限公司 | Data caching method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101320353A (en) | Design method of embedded type browser caching | |
KR100930455B1 (en) | Method and system for generating search collection by query | |
CN102782683B (en) | Buffer pool extension for database server | |
CN1764916B (en) | Method and apparatus for frequency count | |
CN101599089B (en) | Method and system for automatically searching and extracting update information on content of video service website | |
CN102117278B (en) | The creation method of chained list and system, the lookup method of data and system | |
CN104731974A (en) | Dynamic page loading method based on big data stream type calculation | |
US20040205044A1 (en) | Method for storing inverted index, method for on-line updating the same and inverted index mechanism | |
CN101369280A (en) | Method and device for web page browsing in digital television terminal | |
CN102307234A (en) | Resource retrieval method based on mobile terminal | |
CN102047231A (en) | Data storage and access | |
CN102223681B (en) | IOT system and cache control method therein | |
CN102750174A (en) | Method and device for loading file | |
CN102169507A (en) | Distributed real-time search engine | |
CN108549556B (en) | Application program acceleration method, device, terminal and storage medium | |
CN104679898A (en) | Big data access method | |
CN104298790A (en) | Browser accelerating method and browser device with accelerator | |
CN101916164A (en) | Mobile terminal and file browsing method implemented by same | |
CN102542052A (en) | Priority hash index | |
CN105512251A (en) | Page cache method and device | |
CN109086141B (en) | Memory management method and device and computer readable storage medium | |
CN103425765A (en) | Method and device for extracting webpage text and method and system for webpage preview | |
CN102339290B (en) | Method and device for directionally acquiring webpage data information | |
CN102880707B (en) | Webpage body content recognition methods and device | |
CN102486734A (en) | Rich client application system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20081210 |