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

Method and apparatus for accessing files

A file and file indexing technology, applied in the field of data scanning, can solve the problem of slow full-disk scanning, reduce access times, and improve scanning efficiency

Active Publication Date: 2019-02-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a method and device for accessing files that can increase the scanning speed for the problem of slow full-disk scanning when traditionally accessing files

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 apparatus for accessing files
  • Method and apparatus for accessing files
  • Method and apparatus for accessing files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0023] In order to solve the problem of slow overall scan speed for files in the file system, storage space or storage device, etc., the present invention establishes a file index for files on the file system, storage space or storage device, etc., and preloads the file index into In the memory cache, a cache index mechanism consisting of memory cache, file index and files on the file system, storage space or storage device is established, and the operation on files on the file system, storage space or storage device, etc. becomes The operation of memory cache and file index is improved, and the sc...

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 relates to a method and device for having access to a file. The method includes the following steps of obtaining an operation request for the file, judging whether a file index exists or not, loading the file index in a memory cache according to the file index according to the operation request, conducting retrieval in the memory cache where the file index is loaded to obtain the corresponding file, establishing the file index according to the operation request if the file index does not exist, loading the established file index in the memory cache, and conducing retrieval in the memory cache where the file index is loaded to obtain the corresponding file. According to the method and the device for having access to the file, the file index is loaded into the memory cache, retrieval is conducted to obtain the corresponding file, the file access to a file system or a storage space or a storage device or the like is converted into the retrieval of the memory cache and the file index, the number of the times of access to the file system or the storage space or the storage device or the like is decreased, and the scanning efficiency is improved.

Description

technical field [0001] The invention relates to the field of data scanning, in particular to a method and device for accessing files. Background technique [0002] With the development of computer technology, a large amount of file data has been produced. In order to save file data, file data is stored on various storage devices, such as SD card (Secure Digital Memory Card, safe digital card), DVD (Digital Versatile Disc, Digital Versatile Disc), etc. [0003] Taking the SD card as an example, as the amount of data increases, the number of files stored on the SD card is increasing. In order to obtain a certain type of file on the SD card or a file exceeding the specified size, it is necessary to perform a full scan on the SD card. Because neither Android nor Linux can rely on the system interface to directly obtain a certain type of file or a file exceeding a specified size, it is often obtained by traversing and scanning the SD card. Since the files on the SD card can be...

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/14G06F16/13
CPCG06F16/13G06F16/148G06F16/172
Inventor 张兴华夏盛新甘晖明王梓茗樊华恒
Owner TENCENT TECH (SHENZHEN) CO LTD