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

File reading accelerating method and computer equipment

A file reading and file technology, applied in the input/output process of computing, data processing, instruments, etc., can solve the problems of low processing efficiency and slow file reading efficiency, and achieve the effect of improving efficiency and speed

Active Publication Date: 2018-07-24
北京思特奇信息技术股份有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is: the efficiency of reading files is slow, resulting in low processing efficiency

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 accelerating method and computer equipment
  • File reading accelerating method and computer equipment
  • File reading accelerating method and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 7

[0088] Optionally, in another embodiment 7, the method also includes:

[0089] When the data is read from the file for the first time and stored in the upper half, and the byte length of the read data is equal to half of the byte length C, and the data of the byte length B is read from the memory data block;

[0090] Determine the byte length L of the data body according to the data of the byte length B;

[0091] Determine whether the byte length L is greater than half of the byte length C, if not, read the data of the byte length L directly from the position of the current offset P, wherein when reading for the first time, the current The offset P is 0;

[0092] The data of the byte length L is returned as return data, and at the same time, the current offset P is updated to L and the partition identifier F is reserved as the upper half.

[0093] It should be noted that, in this embodiment 7, the scheme is carried out on the basis of the above-mentioned embodiment 1-embodim...

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 file reading acceleration method and computer equipment. The method comprises the following steps of: when a partitioning identifier F is marked as an upper half area, judging whether a sum of P and B is greater than a half of C or not; if the judging result is positive, reading data from a file, storing the data to a lower half area, and starting a B byte from a position of P, wherein the byte length of the read data is equal to a half of C; determining a byte length L of a data body according to the B byte; directly reading data of L from the position of P according to L; and returning L as return data, updating P to be P+L and marking the partitioning identifier f as a lower half area. The invention furthermore relates to the computer equipment. Through the method, a system of packaging data and carrying out storage according to a data head and data body combined manner is adopted, and a manner of reading N times of maximum data at one time and then returning the data one by one is adopted to reduce file IO operation, so that the data processing efficiency and speed are greatly improved.

Description

technical field [0001] The invention belongs to the technical field, and in particular relates to a method for speeding up file reading and computer equipment. Background technique [0002] The traditional file storage method adopts a more common method of storing a single record and a single line, so it is also a single-line reading method when reading. This reading method reads one line at a time, the number of times read and the size of the file The number of rows is the same, and the memory for storing data needs to be cleared every time it is read. [0003] The biggest problem with the traditional line-by-line reading method is that multiple reads and multiple IO operations lead to slow reading efficiency. Therefore, when processing file data application systems, the increase in processing modules of the file system will gradually lead to low system processing efficiency. . Contents of the invention [0004] The technical problem to be solved by the present inventio...

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
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/064G06F3/0643
Inventor 左冬杰
Owner 北京思特奇信息技术股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More