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

A file reading method and an electronic device

A technology of file reading and electronic equipment, which is applied in the direction of file system, file access structure, file/folder operation, etc., and can solve the problems of traffic QPS jitter and so on

Inactive Publication Date: 2019-01-04
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention discloses a file reading method and electronic equipment to solve the problems of reading large files in the process of stress testing, jittering of traffic QPS when switching pages in the process of stress testing, etc.

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
  • A file reading method and an electronic device
  • A file reading method and an electronic device
  • A file reading method and an electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present disclosure.

[0040] The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the present disclosure. The terms "comprising", "comprising", etc. used herein indicate the presence of stated features, ...

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 discloses a file reading method and an electronic device. The invention adopts the paging technology to divide the large file into a plurality of pages through the segmentation processing of the large file so that any record in the large file can be accessed randomly during the paging loading in the reading process. The sliding window mechanism is used in the loading process to loadthe file from the next line of the current line of the file quickly, which reduces the time of locating the file line. In addition, the next page is loaded asynchronously in advance. When the number of random records on the current page approaches to the number of data records on the page, the next page is triggered asynchronously, which reduces the violent fluctuation of pressure measurement flowQPS caused by loading documents in the process of pressure measurement. After the page loading is completed, the read-write lock mode is adopted, the read-write permission of the loading page threadis set to read-only, and the read-write permission of the pressure measuring thread is set to write-only, so that the resource contention between the loading page thread and the pressure measuring thread is reduced, and the concurrency between the pressure measuring threads is improved.

Description

technical field [0001] The present disclosure relates to a file reading method and electronic equipment. Background technique [0002] In network technology, it is necessary to perform performance stress testing on the network. Given a parameterized file record, randomly select a record to apply to each request in the stress testing process, so that the stress testing data is diverse and more realistic and close to the real scene. In the parameterized file , the parameter is used to construct a data set. After the data value is replaced with the specified variable value in the request setting, the value in the parameter source will be dynamically replaced with the specified variable value during the pressure application process. [0003] The general method of random parameterizing a file is to read the file into the memory at one time for process sharing, and then randomly select a line of records according to the size of the file line number as the return of the random para...

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): G06F16/16G06F16/13
Inventor 付得龙
Owner WUHAN DOUYU NETWORK TECH CO LTD
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