Method and device for loading file
A file loading and file technology, applied in the direction of program control device, program loading/starting, etc., can solve the problems of network speed limitation, long time consumption of files, etc., and achieve fast speed, good user experience, and high file loading efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Such as figure 1 The flow chart of the file loading method provided by the first embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0024] In step S101, a disk cache for storing files is created in advance, and a disk index table is established.
[0025] In the embodiment of the present invention, a folder is created in the disk in advance (for example, a folder named tcl_img_cache is created here) as a disk cache for storing files, and a file or a small database built in the terminal is used to create a disk index table. To record the index of these files, the disk index table includes: file feature code (such as file ID, etc.), file URL (url), file storage location information (such as file read path (path), etc.), file The number of accesses (num), the time of the most recent access to the file (date), etc. In the disk index table, since network files a...
Embodiment 2
[0039] Such as figure 2 The flow chart of the file loading method provided by the second embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0040] In step S201, a disk cache for storing files is created in advance, and a disk index table is established.
[0041] In step S202, a memory cache is created when the application starts, files in the disk cache are preloaded into the memory cache, and a memory index table is established.
[0042] In step S203, a file loading instruction is received, and the file loading instruction carries file information of the file to be loaded. In step S204, query the memory index table according to the file information of the file to be loaded, and judge whether there is storage location information corresponding to the file information of the file to be loaded in the memory index table, if yes, execute step S205; otherwise, execute...
Embodiment 3
[0055] Such as image 3 The flow chart of the file loading method provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0056] In step S301, a disk cache for storing files is created in advance, and a disk index table is established.
[0057] In step S302, a memory cache is created when the application starts, files in the disk cache are preloaded into the memory cache, and a memory index table is established.
[0058] In step S303, a file loading instruction is received, and the file loading instruction carries file information of the file to be loaded.
[0059] In step S304, query the memory index table according to the file information of the file to be loaded, and judge whether there is storage location information corresponding to the file information of the file to be loaded in the memory index table, if yes, execute step S305; otherwise, ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com