CN102750174A - Method and device for loading file - Google Patents

Method and device for loading file Download PDF

Info

Publication number
CN102750174A
CN102750174A CN2012102237741A CN201210223774A CN102750174A CN 102750174 A CN102750174 A CN 102750174A CN 2012102237741 A CN2012102237741 A CN 2012102237741A CN 201210223774 A CN201210223774 A CN 201210223774A CN 102750174 A CN102750174 A CN 102750174A
Authority
CN
China
Prior art keywords
file
concordance list
disk
memory
memory cache
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.)
Granted
Application number
CN2012102237741A
Other languages
Chinese (zh)
Other versions
CN102750174B (en
Inventor
程徐超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201210223774.1A priority Critical patent/CN102750174B/en
Publication of CN102750174A publication Critical patent/CN102750174A/en
Application granted granted Critical
Publication of CN102750174B publication Critical patent/CN102750174B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is suitable for the field of multimedia applications and provides a method and a device for loading a file. The method comprises the following steps of: receiving a file loading instruction which carries file information of a to-be-loaded file; inquiring a memory index table according to the file information of the to-be-loaded file, wherein the memory index table contains storage location information and access frequency of a file preloaded from a disk cache to a memory cache; and if searching the storage location information corresponding to the file information in the memory index table, loading the file from the memory cache according to the searched storage location information and updating the access frequency of the file in the memory index table. The file downloaded from the network is stored at a terminal by a two-level file caching mode, and since the access delay of a memory is much less than that of the dick cache, compared with the file stored in the memory cache, a display file can be rapidly loaded, the file loading efficiency is high, and the file loading speed is quick.

Description

File load method and device
Technical field
The invention belongs to the multimedia application field, relate in particular to a kind of file load method and device.
Background technology
Progress along with network and science and technology; Electric terminal becomes more and more intelligent and interconnected networking; End products such as mobile phone, TV, flat board are more and more; Diverse network on electric terminal is used also more and more, and at present numerous application all needs often to obtain some files from network and is shown to the user in order to experience for the user more intuitively.Though present electric terminal is more and more advanced, applied more and more, yet because the restriction of network speed, the terminal obtains heap file and loads spent overlong time at network, and loading efficiency is lower.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method and device of file load, is intended to solve existing terminal because the restriction of network speed, obtains the heap file long problem that expends time in from network.
The embodiment of the invention is achieved in that a kind of file load method, and said method comprises:
The instruction of reception file load, the fileinfo of file to be loaded is carried in said file load instruction;
According to the fileinfo audit memory concordance list of said file to be loaded, comprise stored position information and the access times that are pre-loaded to the file the memory cache from disk buffering in the said internal memory concordance list;
If in the internal memory concordance list, find the corresponding stored position information of said fileinfo,, and upgrade the access times of said internal memory concordance list file then according to the stored position information load document from said memory cache that finds.
Another purpose of the embodiment of the invention is to provide a kind of file load device, and said terminal comprises:
The command reception unit is used to receive the file load instruction, and the fileinfo of file to be loaded is carried in said file load instruction;
Internal memory is searched the unit, is used for the fileinfo audit memory concordance list according to said file to be loaded, comprises stored position information and the access times that are pre-loaded to the file the memory cache from disk buffering in the said internal memory concordance list;
The memory file loading unit; Be used for if find the corresponding stored position information of said fileinfo at the internal memory concordance list; Then according to stored position information load document from said memory cache of finding, and upgrade the access times of said internal memory concordance list file.
In embodiments of the present invention; Come the storage networking downloaded files at the terminal through the pattern of L2 cache file; Because the visit of internal memory time-delay is much smaller than disk buffering, thereby can both loads the back immediately and show, and need not wait for and slowly loading from network for being stored in file in memory cache or the disk buffering; Especially when file storage is in memory cache, can read the loaded and displayed file soon basically; File load efficient is high, speed is fast, and file load speed need not receive the restriction of network speed, and user experience is good.
Description of drawings
Fig. 1 is the process flow diagram of the file load method that provides of first embodiment of the invention;
Fig. 2 is the process flow diagram of the file load method that provides of second embodiment of the invention;
Fig. 3 is the process flow diagram of the file load method that provides of third embodiment of the invention;
Fig. 4 is the structural representation of the file load device that provides of fourth embodiment of the invention;
Fig. 5 is the structural representation of the file load device that provides of fifth embodiment of the invention;
Fig. 6 is the structural representation of the file load device that provides of sixth embodiment of the invention;
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention provides a kind of file load method, through will carrying out L2 cache from the file of network download so that during user's browser document, can be from buffer memory load document as early as possible.
For technical scheme of the present invention is described, describe through specific embodiment below.
Embodiment one:
Be illustrated in figure 1 as the file load method flow diagram that first embodiment of the invention provides,, only show the part relevant with the embodiment of the invention for the ease of explanation.
In step S101, create the disk buffering of storage file in advance, and set up the disk concordance list.
In embodiments of the present invention; In disk, create the disk buffering of a file (for example setting up the file of a tcl_img_cache by name here) in advance as storage file; And use the built-in toy data base of a file or terminal to set up the index that the disk concordance list is used for writing down these files; Wherein this disk concordance list comprises: file characteristic sign indicating number (like file ID etc.), the URL of file (url), the stored position information of file (like read path (path) of file etc.); The access times of file (num), the time (date) of nearest access file etc.In the disk concordance list,, therefore can use key (key) value of the URL (url) of file as file index owing to be that network file is carried out buffer memory.In embodiments of the present invention, the type of file includes but not limited to: web page files, picture file etc.
In embodiments of the present invention, create disk buffering and can when application program is installed, accomplish, this disk buffering file is empty, follow-up from file of network download after the initial creation, just downloaded files is stored in the disk buffering.
In step S102, when application program launching, create memory cache, the file in the disk buffering is preloaded into said memory cache, and sets up the internal memory concordance list.
In embodiments of the present invention; When starting terminal needs the application program of browse network file; In internal memory, hew out the memory cache of a block space as storage file; The region of memory of this piece memory cache zone and program run is not shared, by the recycling and the release of this memory cache of application program control.The size of the region of memory of wherein, being set up is provided with according to application program by the developer in advance flexibly.
In embodiments of the present invention, memory cache is preloaded into the file in some disk bufferings in the memory cache after creating well; The quantity of documents of prestrain can be confirmed (to be 5M like the memory cache size according to the size of memory cache; Then prestrain 3M file is to memory cache), and set up the internal memory concordance list at memory cache according to the file of prestrain, said internal memory concordance list comprises: file characteristic sign indicating number (like file ID etc.); The URL of file (url); The stored position information of file (like the read path (path) of file etc.), the access times of file (num), time (date) of access file etc. recently.In the present embodiment, the method that the file in the disk buffering is preloaded in the memory cache can be following:
According to formula n*1/ (d 1-d 2+ 1) calculate the access factor of All Files in the disk buffering, N the file that access factor is maximum is preloaded into memory cache.Wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, N is the integer greater than zero.In embodiments of the present invention, obtain the file that is preloaded into memory cache by above-mentioned formula, its computing time is shorter, need not expend too many resource and time, and efficient is high and effective.
In step S103, receive the file load instruction, this document load instructions is carried the fileinfo of file to be loaded.
In embodiments of the present invention, the fileinfo of the file to be loaded that carries of file load instruction includes but not limited to: file URL or file characteristic sign indicating number etc.The file load instruction can be sent in the application program launching process.Need to prove that fileinfo to be loaded can come from network side and issue, and also can generate in this locality.
In step S104, according to the fileinfo audit memory concordance list of file to be loaded, judge the corresponding stored position information of fileinfo that whether has file to be loaded in the internal memory concordance list, be execution in step S105 then, otherwise process ends.
In embodiments of the present invention, owing to only stored the file of part disk buffering in the memory cache, thereby when searching, have two kinds of situation, promptly find corresponding stored position information and do not find corresponding stored position information.
In step S105, according to the stored position information that finds, load document from memory cache.
In embodiments of the present invention, according to the stored position information that finds, load document from memory cache.Behind the file of load document load instructions appointment from memory cache; The file access number of times information of this document and the temporal information (as: access times of file add, upgrade the time of nearest access file) of nearest access file in can also the updating memory concordance list.
In embodiments of the present invention; Come the storage networking downloaded files at the terminal through the pattern of L2 cache file; Because the visit of internal memory time-delay is much smaller than disk buffering, thereby basically can the rapid loading display file for the file that is stored in the memory cache, file load efficient is high, speed is fast; And file load speed need not receive the restriction of network speed, and user experience is good.
Embodiment two:
Be illustrated in figure 2 as the file load method flow diagram that second embodiment of the invention provides,, only show the part relevant with the embodiment of the invention for the ease of explanation.
In step S201, create the disk buffering of storage file in advance, and set up the disk concordance list.
In step S202, when application program launching, create memory cache, the file in the disk buffering is preloaded into memory cache, and sets up the internal memory concordance list.
In step S203, receive the file load instruction, this document load instructions is carried the fileinfo of file to be loaded.In step S204, according to the fileinfo audit memory concordance list of file to be loaded, judge the corresponding stored position information of fileinfo that whether has file to be loaded in the internal memory concordance list, be execution in step S205 then, otherwise execution in step S206.
In embodiments of the present invention, when not having the fileinfo of file to be loaded in the internal memory concordance list, jump to step S206, inquiry disk concordance list.The end operation flow process is different during with the fileinfo that do not have file to be loaded in the internal memory concordance list among the embodiment one.
In step S205, according to the stored position information that finds, load document from memory cache.
In embodiments of the present invention, the implementation of step S201-S205 and step S101-S105 is similar, please refer to the description among the embodiment one.
In step S206, according to the fileinfo of file to be loaded inquiry disk concordance list, whether there is the corresponding stored position information of fileinfo of file to be loaded in the judge disk concordance list, be execution in step S207 then, otherwise execution in step S208.
In the present embodiment; Owing to stored the file of last downloaded in the disk buffering; Thereby when searching, have two kinds of situation according to fileinfo, promptly find the corresponding stored position information of fileinfo and the stored position information that does not find correspondence (need from network download).
In step S207, according to the stored position information that finds, load document from disk buffering.
In embodiments of the present invention, find behind the stored position information load document from disk buffering.In the present embodiment; Behind the file of disk buffering load document load instructions appointment, can also this document be stored to memory cache, and (as: access times of file add one in the disk concordance list, to upgrade the access times of this document and the temporal information of nearest access file; Upgrade the time of nearest access file); And further in the internal memory concordance list, add the corresponding information of this document, and like the condition code of this document, the stored position information of this document; The access times of this document, the nearest access time of this document etc.
In the present embodiment, for defrag space timely, reach preset when big or small when reaching preset second time or disk buffering, according to formula n*1/ (d 1-d 2+ 1) calculate the access factor of the file in the said disk buffering, X minimum file of deletion access factor, wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, X is the integer greater than zero, and second preset time and preset disk buffering size are provided with by the developer in advance.
In step S208, from network download file load instruction file information corresponding file, and downloaded files is stored in the disk buffering, upgrade the disk concordance list.
In embodiments of the present invention, will be from file storage to the memory cache of network download and disk buffering after, in the disk concordance list, add the corresponding information of this document.
In embodiments of the present invention, come the display network file through the pattern of L2 cache file, can both load the back immediately and show, and need not wait for slowly and loading from network for being stored in file in memory cache or the disk buffering at the terminal.In addition, do not obtain from disk buffering or network when in memory cache, not having file to be loaded, further improved file load efficient.
Embodiment three:
Be illustrated in figure 3 as the file load method flow diagram that third embodiment of the invention provides,, only show the part relevant with the embodiment of the invention for the ease of explanation.
In step S301, create the disk buffering of storage file in advance, and set up the disk concordance list.
In step S302, when application program launching, create memory cache, the file in the disk buffering is preloaded into memory cache, and sets up the internal memory concordance list.
In step S303, receive the file load instruction, this document load instructions is carried the fileinfo of file to be loaded.
In step S304, according to the fileinfo audit memory concordance list of file to be loaded, judge the corresponding stored position information of fileinfo that whether has file to be loaded in the internal memory concordance list, be execution in step S305 then, otherwise execution in step S306.
In step S305, according to the stored position information that finds, load document from memory cache.
In embodiments of the present invention, the implementation of step S301-S305 and step S101-S105 and step S201-S205 is similar, and wherein the redirect of step S304 and step S204 is different, please refer to the description among embodiment one and the embodiment two.
In embodiments of the present invention, in order in time to clear up memory cache, save the space, said file load method also comprises:
In step S306, when satisfying preset condition, the cleaning memory cache.
Be specially, reach preset when big or small when reaching preset very first time or memory cache, according to formula n*1/ (d 1-d 2+ 1) calculate the access factor of the file in the said memory cache, M minimum file of deletion access factor, wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, M is the integer greater than zero, and the preset very first time and preset memory cache size are provided with by the developer in advance.When end application is closed, releasing memory buffer memory then.
In embodiments of the present invention, by formula n*1/ (d 1-d 2+ 1) decide the cleaning of memory cache to discharge, its computing time is shorter, need not expend too many resource and time, and efficient is high and effective.
Need to prove that after load document from internal memory, the step of cleaning memory cache also can be in embodiment one, two when satisfying preset condition, and is not limited among the embodiment three.
Embodiment four:
The structural representation of the file load device that Fig. 4 provides for fourth embodiment of the invention for the ease of explanation, only shows the part relevant with the embodiment of the invention.
Disk buffering is created unit 41, is used for creating in advance the disk buffering of storage file, and sets up the disk concordance list, and the disk concordance list comprises the stored position information and the access times of the file in the disk buffering.
In embodiments of the present invention; The disk concordance list comprises: file characteristic sign indicating number (like file ID etc.), the URL of file (url), the stored position information of file (as: read path of file (path) etc.); The access times of file (num), the time (date) of nearest access file etc.
Memory cache is created unit 42, is used for when end application starts, creating memory cache, the file in the disk buffering is preloaded into memory cache, and sets up the internal memory concordance list.
In embodiments of the present invention, said memory cache is created unit 42 and is comprised:
Buffer memory is created module 421, is used for when end application starts, creating memory cache.
Prestrain module 422 is used for the (d according to formula n*1/ 1-d 2+ 1) calculate the access factor of All Files in the disk buffering, N the file that access factor is maximum is preloaded into memory cache.Wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, N is the integer greater than zero.
Concordance list is set up module 423; Be used to set up the internal memory concordance list; The internal memory concordance list comprises: file characteristic sign indicating number (like file ID etc.), the URL of file (url), the stored position information of file (as: read path of file (path) etc.); The number of times of access file (num), the time (date) of nearest access file etc.
Command reception unit 43 is used to receive the file load instruction, and this document load instructions is carried the fileinfo of file to be loaded.
Internal memory is searched unit 44, is used for the fileinfo audit memory concordance list according to file to be loaded, comprises the stored position information and the access times that are pre-loaded to the file the memory cache from disk buffering in the internal memory concordance list;
File load unit 45 is used for if find the corresponding stored position information of said fileinfo at the internal memory concordance list, then according to the stored position information load document from memory cache that finds, and the access times of updating memory concordance list file.
Among the embodiment one that the file load device that present embodiment four provides can use in aforementioned correspondence, details are referring to the description of said method embodiment.In embodiments of the present invention; Come the storage networking downloaded files at the terminal through the pattern of L2 cache file; Because the visit of internal memory time-delay is much smaller than disk buffering, thereby can both loads the back immediately and show, and need not wait for and slowly loading from network for being stored in file in memory cache or the disk buffering; Especially when file storage is in memory cache, can read the loaded and displayed file soon basically; File load efficient is high, speed is fast, and file load speed need not receive the restriction of network speed, and user experience is good.
Embodiment five:
The structural representation of the file load device that Fig. 5 provides for fifth embodiment of the invention for the ease of explanation, only shows the part relevant with the embodiment of the invention.Compare with the Fig. 4 among the embodiment four; Among Fig. 5 that embodiment five provides; When the file load unit 45 in the file load device also is used in the stored position information that finds the fileinfo correspondence in the disk concordance list; According to the file storage location information load document from disk buffering that finds, and the access times of renewal disk concordance list file.In addition, the file load device has also comprised a unit, and promptly disk is searched unit 51.Wherein:
Disk is searched unit 51, is used for if do not find the corresponding stored position information of fileinfo at the internal memory concordance list, and then according to fileinfo inquiry disk concordance list, the disk concordance list comprises the stored position information and the access times of the file of buffer memory in the disk buffering.
File load unit 45 also is used for when the disk concordance list finds the stored position information of fileinfo correspondence, according to the file storage location information load document from disk buffering that finds, and the access times of renewal disk concordance list file.
Among the embodiment two that the file load device that present embodiment five provides can use in aforementioned correspondence, details are referring to the description of said method embodiment.In embodiments of the present invention, come the display network file through the pattern of L2 cache file, can both load the back immediately and show, and need not wait for slowly and loading from network for being stored in file in memory cache or the disk buffering at the terminal.In addition, do not obtain from disk buffering or network when in memory cache, not having file to be loaded, further improved file load efficient.
Embodiment six:
The structural representation of the file load device that Fig. 6 provides for sixth embodiment of the invention for the ease of explanation, only shows the part relevant with the embodiment of the invention.Disk buffering among Fig. 5 that Fig. 4 that provides among Fig. 6 that embodiment six provides and the embodiment four and embodiment five provide creates that unit 42, command reception unit 43 are created in unit 41, memory cache, internal memory searches unit 44 and file load unit 45 is identical; In addition; Two unit have been comprised more than the file load device of Fig. 6, i.e. memory cache releasing unit 61 and memory cache cleaning unit 62.Wherein:
Memory cache releasing unit 61 is used for when end application is closed, discharging said memory cache.
Memory cache cleaning unit 62 is used for reaching preset when big or small when reaching preset very first time or memory cache, according to formula n*1/ (d 1-d 2+ 1) calculate the access factor of the file in the memory cache, M minimum file of deletion access factor, wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, M is the integer greater than zero.
In embodiments of the present invention; Come the storage networking downloaded files at the terminal through the pattern of L2 cache file; Because the visit of internal memory time-delay is much smaller than disk buffering, thereby can both loads the back immediately and show, and need not wait for and slowly loading from network for being stored in file in memory cache or the disk buffering; Especially when file storage is in memory cache, can read the loaded and displayed file soon basically; File load efficient is high, speed is fast, and file load speed need not receive the restriction of network speed, and user experience is good.
Among the embodiment two, three that the file load device that present embodiment six provides can use in aforementioned correspondence, details are referring to the description of said method embodiment.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be in being stored in a computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a file load method is characterized in that, said method comprises:
The instruction of reception file load, the fileinfo of file to be loaded is carried in said file load instruction;
According to the fileinfo audit memory concordance list of said file to be loaded, comprise stored position information and the access times that are pre-loaded to the file the memory cache from disk buffering in the said internal memory concordance list;
If in the internal memory concordance list, find the corresponding stored position information of said fileinfo,, and upgrade the access times of said internal memory concordance list file then according to the stored position information load document from said memory cache that finds.
2. the method for claim 1 is characterized in that, before the step of said reception file load instruction, said method also comprises:
Create the disk buffering of storage file in advance, and set up the disk concordance list, said disk concordance list comprises the stored position information and the access times of the file in the said disk buffering;
When end application starts, create memory cache, the file in the said disk buffering is preloaded into said memory cache, and sets up the internal memory concordance list.
3. method as claimed in claim 2 is characterized in that, saidly file in the disk buffering is preloaded into said memory cache comprises:
According to formula n*1/ (d 1-d 2+ 1) calculates the access factor of the file in the said disk buffering;
N the file that access factor is maximum is preloaded into said memory cache, and wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, N is the integer greater than zero.
4. like the described method of the arbitrary claim of claim 1 to 3, it is characterized in that said method also comprises:
If in the internal memory concordance list, do not find the corresponding stored position information of said fileinfo, then according to said fileinfo inquiry disk concordance list, said disk concordance list comprises the stored position information and the access times of the file of buffer memory in the disk buffering;
If in the disk concordance list, find the corresponding stored position information of said fileinfo,, and upgrade the access times of said disk concordance list file then according to the file storage location information load document from said disk buffering that finds.
5. the method for claim 1 is characterized in that, after the load document, also comprises from said memory cache in the file storage location information that said basis finds:
When end application is closed, discharge said memory cache; Or
Reach preset when big or small when reaching preset very first time or memory cache, according to formula n*1/ (d 1-d 2+ 1) calculate the access factor of the file in the said memory cache, M minimum file of deletion access factor, wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, M is the integer greater than zero.
6. a file load device is characterized in that, said device comprises:
The command reception unit is used to receive the file load instruction, and the fileinfo of file to be loaded is carried in said file load instruction;
Internal memory is searched the unit, is used for the fileinfo audit memory concordance list according to said file to be loaded, comprises stored position information and the access times that are pre-loaded to the file the memory cache from disk buffering in the said internal memory concordance list;
The file load unit is used for if find the corresponding stored position information of said fileinfo at the internal memory concordance list, then according to the stored position information load document from said memory cache that finds, and upgrades the access times of said internal memory concordance list file.
7. device as claimed in claim 6 is characterized in that, said device also comprises:
Disk buffering is created the unit, is used for creating in advance the disk buffering of storage file, and sets up the disk concordance list, and said disk concordance list comprises the stored position information and the access times of the file in the said disk buffering;
Memory cache is created the unit, is used for when end application starts, creating memory cache, the file in the said disk buffering is preloaded into said memory cache, and sets up the internal memory concordance list.
8. device as claimed in claim 7 is characterized in that, said memory cache is created the unit and comprised:
Buffer memory is created module, is used for when end application starts, creating memory cache;
The prestrain module is used for the (d according to formula n*1/ 1-d 2+ 1) calculate the access factor of the file in the said disk buffering, N the file that access factor is maximum is preloaded into said memory cache, and wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, N is the integer greater than zero;
Concordance list is set up module, is used to set up the internal memory concordance list.
9. like the described device of the arbitrary claim of claim 6 to 8, it is characterized in that said device also comprises:
Disk is searched the unit; Be used for if do not find the corresponding stored position information of said fileinfo at the internal memory concordance list; Then according to said fileinfo inquiry disk concordance list, said disk concordance list comprises the stored position information and the access times of the file of buffer memory in the disk buffering;
Said file load unit also is used for when the disk concordance list finds the stored position information of said fileinfo correspondence; According to the file storage location information that finds load document from said disk buffering, and upgrade the access times of said disk concordance list file.
10. device as claimed in claim 6 is characterized in that, said device also comprises:
The memory cache releasing unit is used for when end application is closed, discharging said memory cache;
Memory cache cleaning unit is used for reaching preset when big or small when reaching preset very first time or memory cache, according to formula n*1/ (d 1-d 2+ 1) calculate the access factor of the file in the said memory cache, M minimum file of deletion access factor, wherein, n is the access times of file, d 1Be current date, d 2Be the time of nearest access file, M is the integer greater than zero.
CN201210223774.1A 2012-06-29 2012-06-29 file loading method and device Expired - Fee Related CN102750174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210223774.1A CN102750174B (en) 2012-06-29 2012-06-29 file loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210223774.1A CN102750174B (en) 2012-06-29 2012-06-29 file loading method and device

Publications (2)

Publication Number Publication Date
CN102750174A true CN102750174A (en) 2012-10-24
CN102750174B CN102750174B (en) 2016-01-27

Family

ID=47030393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210223774.1A Expired - Fee Related CN102750174B (en) 2012-06-29 2012-06-29 file loading method and device

Country Status (1)

Country Link
CN (1) CN102750174B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218396A (en) * 2013-03-07 2013-07-24 江苏省电力公司南京供电公司 Dispatching and operating visualized analysis methodby generating static web pages according to visit frequency characteristic
CN103605549A (en) * 2013-11-26 2014-02-26 随身云(南京)信息技术有限公司 Interface exit display method and device
CN104092670A (en) * 2014-06-25 2014-10-08 北京蓝汛通信技术有限责任公司 Method for utilizing network cache server to process files and device for processing cache files
CN104298691A (en) * 2013-07-19 2015-01-21 国际商业机器公司 Method and device for evaluating database index efficiency
CN104407812A (en) * 2014-11-14 2015-03-11 北京国双科技有限公司 Network loading method and network loading device for terminal equipment
CN104427373A (en) * 2013-09-06 2015-03-18 中兴通讯股份有限公司 IPTV (Internet Protocol Television)-based data processing method and terminal
CN103092775B (en) * 2013-01-31 2015-06-10 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN104899249A (en) * 2015-05-04 2015-09-09 中国科学院信息工程研究所 Reliable index update system and method under mass data
CN105095397A (en) * 2015-07-03 2015-11-25 青岛海信传媒网络技术有限公司 Method and device for document read-write processing
CN105677381A (en) * 2015-05-29 2016-06-15 深圳Tcl数字技术有限公司 Method and device for pre-loading media files
CN106201734A (en) * 2016-06-22 2016-12-07 北京小米移动软件有限公司 Sharing files method and device
CN106372109A (en) * 2016-08-19 2017-02-01 ***股份有限公司 Internet resource file caching method and apparatus
CN106528594A (en) * 2016-09-20 2017-03-22 海信集团有限公司 Downloaded file querying method and device
CN106569894A (en) * 2016-10-11 2017-04-19 北京元心科技有限公司 Picture loading method and system
CN106776706A (en) * 2016-11-16 2017-05-31 航天恒星科技有限公司 Method for managing user right and device based on caching
CN107273310A (en) * 2017-06-30 2017-10-20 浙江大华技术股份有限公司 A kind of read method of multi-medium data, device, medium and equipment
CN107480150A (en) * 2016-06-07 2017-12-15 阿里巴巴集团控股有限公司 A kind of file loading method and device
CN108107792A (en) * 2017-12-29 2018-06-01 美的集团股份有限公司 Loading method, terminal and the computer readable storage medium of LUA scripts
CN108334383A (en) * 2018-03-30 2018-07-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN110321179A (en) * 2019-07-08 2019-10-11 深圳市迅雷网络技术有限公司 A kind of application program launching method, system, device and computer storage medium
CN110442556A (en) * 2019-07-29 2019-11-12 浙江大华技术股份有限公司 Cache pre-add support method, mobile terminal and computer storage medium
CN110647502A (en) * 2018-06-26 2020-01-03 中兴通讯股份有限公司 File loading method, equipment, device and computer storage medium
CN110874211A (en) * 2018-09-04 2020-03-10 北京奇虎科技有限公司 PHP file access method and device
CN112565870A (en) * 2019-09-26 2021-03-26 北京字节跳动网络技术有限公司 Content caching and reading method, client and storage medium
CN112749051A (en) * 2019-10-31 2021-05-04 深圳市万普拉斯科技有限公司 File use information recording method and device and mobile terminal
CN113377722A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Resource data reading method and device and storage medium
CN113421557A (en) * 2021-06-22 2021-09-21 广州小鹏汽车科技有限公司 Voice interaction method, voice interaction system and storage medium
CN113452808A (en) * 2021-06-29 2021-09-28 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03273348A (en) * 1990-03-22 1991-12-04 Nec Corp Access system for load module
CN102081920A (en) * 2010-12-30 2011-06-01 深圳芯邦科技股份有限公司 Method and device for controlling picture display
CN102331920A (en) * 2011-07-26 2012-01-25 深圳市万兴软件有限公司 Data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03273348A (en) * 1990-03-22 1991-12-04 Nec Corp Access system for load module
CN102081920A (en) * 2010-12-30 2011-06-01 深圳芯邦科技股份有限公司 Method and device for controlling picture display
CN102331920A (en) * 2011-07-26 2012-01-25 深圳市万兴软件有限公司 Data processing method and device

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092775B (en) * 2013-01-31 2015-06-10 武汉大学 Spatial data double cache method and mechanism based on key value structure
CN103218396B (en) * 2013-03-07 2016-12-28 江苏省电力公司南京供电公司 The management and running visual analysis method of static Web page is generated according to visitation frequency feature
CN103218396A (en) * 2013-03-07 2013-07-24 江苏省电力公司南京供电公司 Dispatching and operating visualized analysis methodby generating static web pages according to visit frequency characteristic
CN104298691A (en) * 2013-07-19 2015-01-21 国际商业机器公司 Method and device for evaluating database index efficiency
CN104298691B (en) * 2013-07-19 2017-12-08 国际商业机器公司 For the method and apparatus for the efficiency for assessing database index
CN104427373A (en) * 2013-09-06 2015-03-18 中兴通讯股份有限公司 IPTV (Internet Protocol Television)-based data processing method and terminal
CN103605549A (en) * 2013-11-26 2014-02-26 随身云(南京)信息技术有限公司 Interface exit display method and device
CN104092670A (en) * 2014-06-25 2014-10-08 北京蓝汛通信技术有限责任公司 Method for utilizing network cache server to process files and device for processing cache files
CN104407812A (en) * 2014-11-14 2015-03-11 北京国双科技有限公司 Network loading method and network loading device for terminal equipment
CN104899249B (en) * 2015-05-04 2018-07-13 中国科学院信息工程研究所 Reliable index upgrade system and method under a kind of mass data
CN104899249A (en) * 2015-05-04 2015-09-09 中国科学院信息工程研究所 Reliable index update system and method under mass data
CN105677381B (en) * 2015-05-29 2019-07-12 深圳Tcl数字技术有限公司 Preload the method and device of media file
CN105677381A (en) * 2015-05-29 2016-06-15 深圳Tcl数字技术有限公司 Method and device for pre-loading media files
WO2016192253A1 (en) * 2015-05-29 2016-12-08 深圳Tcl数字技术有限公司 Method and device for pre-loading media file
CN105095397A (en) * 2015-07-03 2015-11-25 青岛海信传媒网络技术有限公司 Method and device for document read-write processing
CN107480150A (en) * 2016-06-07 2017-12-15 阿里巴巴集团控股有限公司 A kind of file loading method and device
CN107480150B (en) * 2016-06-07 2020-12-08 阿里巴巴集团控股有限公司 File loading method and device
CN106201734A (en) * 2016-06-22 2016-12-07 北京小米移动软件有限公司 Sharing files method and device
CN106201734B (en) * 2016-06-22 2023-09-01 北京小米移动软件有限公司 File sharing method and device
CN106372109A (en) * 2016-08-19 2017-02-01 ***股份有限公司 Internet resource file caching method and apparatus
CN106528594A (en) * 2016-09-20 2017-03-22 海信集团有限公司 Downloaded file querying method and device
CN106569894A (en) * 2016-10-11 2017-04-19 北京元心科技有限公司 Picture loading method and system
CN106776706A (en) * 2016-11-16 2017-05-31 航天恒星科技有限公司 Method for managing user right and device based on caching
CN107273310A (en) * 2017-06-30 2017-10-20 浙江大华技术股份有限公司 A kind of read method of multi-medium data, device, medium and equipment
CN108107792A (en) * 2017-12-29 2018-06-01 美的集团股份有限公司 Loading method, terminal and the computer readable storage medium of LUA scripts
CN108334383A (en) * 2018-03-30 2018-07-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN108334383B (en) * 2018-03-30 2021-09-14 联想(北京)有限公司 Information processing method and electronic equipment
CN110647502A (en) * 2018-06-26 2020-01-03 中兴通讯股份有限公司 File loading method, equipment, device and computer storage medium
CN110874211A (en) * 2018-09-04 2020-03-10 北京奇虎科技有限公司 PHP file access method and device
CN110321179A (en) * 2019-07-08 2019-10-11 深圳市迅雷网络技术有限公司 A kind of application program launching method, system, device and computer storage medium
CN110321179B (en) * 2019-07-08 2023-02-14 深圳市迅雷网络技术有限公司 Application program starting method, system, device and computer storage medium
CN110442556A (en) * 2019-07-29 2019-11-12 浙江大华技术股份有限公司 Cache pre-add support method, mobile terminal and computer storage medium
CN112565870A (en) * 2019-09-26 2021-03-26 北京字节跳动网络技术有限公司 Content caching and reading method, client and storage medium
US11907121B2 (en) 2019-09-26 2024-02-20 Beijing Bytedance Network Technology Co., Ltd. Methods for caching and reading content, client, and storage medium
CN112749051A (en) * 2019-10-31 2021-05-04 深圳市万普拉斯科技有限公司 File use information recording method and device and mobile terminal
CN112749051B (en) * 2019-10-31 2022-11-08 深圳市万普拉斯科技有限公司 File use information recording method and device and mobile terminal
CN113421557A (en) * 2021-06-22 2021-09-21 广州小鹏汽车科技有限公司 Voice interaction method, voice interaction system and storage medium
CN113452808A (en) * 2021-06-29 2021-09-28 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium
CN113452808B (en) * 2021-06-29 2023-06-23 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium
CN113377722A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Resource data reading method and device and storage medium

Also Published As

Publication number Publication date
CN102750174B (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN102750174B (en) file loading method and device
CN107870728B (en) Method and apparatus for moving data
US9792227B2 (en) Heterogeneous unified memory
US8719486B2 (en) Pinning content in nonvolatile memory
CN101763437B (en) Method and device for realizing high-speed buffer storage
EP1926022B1 (en) Apparatus and method for efficient memory use in portable terminal
KR102077149B1 (en) Method for managing memory and apparatus thereof
CN103164490B (en) A kind of efficient storage implementation method of not fixed-length data and device
CN103677654A (en) Method and electronic equipment for storing data
CN105512251A (en) Page cache method and device
CN102307234A (en) Resource retrieval method based on mobile terminal
CN109710396B (en) Method and device for information acquisition and memory release
CN105988875B (en) Method and device for running process
CN103593226A (en) Method for improving IO performance of disc of virtual machine
CN104657378A (en) File cache method and device
CN101833464A (en) Method and device for sectionally loading application programs by mobile terminal
CN110989937B (en) Data storage method, device and equipment and computer readable storage medium
CN103513956B (en) A kind of method of processor processes data and device
CN102937905A (en) Method and device for trying out application software and supporting trying out application software
CN103677674A (en) Data processing method and device
CN103412825A (en) Internal storage releasing method and device
CN103713926A (en) Method and system for updating software of client in advance
WO2018064319A1 (en) Tracking access pattern of inodes and pre-fetching inodes
CN109697019A (en) The method and system of data write-in based on FAT file system
US20180089210A1 (en) Tracking access pattern of inodes and pre-fetching inodes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160127