File reading method and system based on mapping technology

A file reading and technology technology, applied in the computer field, can solve problems such as decreased user experience, FPS reduction, freezes, etc., to save data reading time, improve performance, and save preprocessing operations.

Pending Publication Date: 2021-11-26
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Therefore, if the APP needs to frequently load the file data in the file system, it needs to continuously read the data in the file system to the buffer and then copy it to the user space. This is a very time-consuming process and will cause APP performance bottlenecks. , For example, the FPS decreases, and there is a freeze phenomenon, which directly causes a decrease in user experience

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
  • File reading method and system based on mapping technology
  • File reading method and system based on mapping technology
  • File reading method and system based on mapping technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0045] figure 1 An application scenario diagram of a file reading method based on mapping technology provided by an embodiment of the present invention, as shown in figure 1 As shown, the client obtains the data reading instruction and sends the data reading instruction to the server. After receiving the data reading instruction, the server executes the file reading method based on the mapping technology, and finally reads the target data.

[0046] It should be noted that the server can be implemented by an independent server or a server cluster composed of multiple servers. Clients can be smartphones, tablets, laptops, desktop computers, etc., but are not limited thereto. The client and the server may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial Bus) or other communication connection...

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 provides a file reading method and system based on a mapping technology, and the method comprises the steps: obtaining an index corresponding to target data if a data reading instruction is received; according to the index corresponding to the target data, judging whether the target data exists in a preset mapping area or not, wherein the preset mapping area is located in a memory, the preset mapping area is used for storing original data in advance, and the original data is obtained by performing preset processing on data in a cache file; if the target data exists in the preset mapping area, reading original data corresponding to the target data from the preset mapping area; and reading the target data according to the original data corresponding to the target data. According to the embodiment of the invention, the preset mapping area is established, and the corresponding relation between the preset mapping area and the data in the cache file is established, so that when the data needs to be read, the data does not need to be preprocessed, and the data can be directly searched in the preset mapping area, and therefore, the data reading time is saved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a file reading method and system based on mapping technology. Background technique [0002] In the prior art, when the APP opens and reads the file data in the file system of the mobile phone in a conventional way, it generally needs to go through the following two steps: [0003] 1. The operating system kernel finds the index node (inode for short) of the target file in the APP process file symbol table, and the kernel reads the file from the hard disk to the memory buffer through the file information recorded in the index node. [0004] 2. After the file data is copied from the memory buffer to the user space again, the file data can be operated. If the file is an image and needs to be displayed on the page, in addition to the above steps, additional processes such as decoding and byte alignment are required before it can be processed and rendered on the page by the GPU. ...

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 Applications(China)
IPC IPC(8): G06F16/951G06F16/953G06F16/957G06F16/958
CPCG06F16/951G06F16/953G06F16/9574G06F16/958
Inventor 陈晟豪
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT 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