Configuration file analysis method and system, storage medium and electronic equipment
A configuration file and analysis method technology, applied in the field of data analysis, can solve the problems of large memory burden, sudden increase of memory data, failure, etc., to reduce the memory burden and improve work efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] see figure 1 as well as figure 2 As shown, the embodiment of the present invention provides a method for parsing configuration files, including the following steps:
[0064] In step S1, the configuration file to be parsed is copied to obtain a temporary file;
[0065] Specifically, the step S1 specifically includes:
[0066] S11: Obtain the configuration file that needs to be parsed, and identify the size of the configuration file;
[0067] S12: Set a cache unit, divide the configuration file into N file units smaller than the cache unit, and combine the file units into a temporary file one by one through the cache unit, where N is an integer greater than 0.
[0068] As an optional implementation manner, in step S1, the specific implementation manner of this step includes:
[0069] Convert the configuration file into a file object srcFile;
[0070] Create a temporary file and convert the temporary file into a file object targetFile;
[0071] Convert the file obje...
Embodiment 2
[0116] Such as image 3 As shown, the fourth embodiment of the present invention also provides a configuration file parsing system, which includes:
[0117] Temporary file obtaining unit 1, used to obtain the configuration file that needs to be parsed, and copy the configuration file to obtain the temporary file;
[0118] Temporary file analysis unit 2 is used to obtain the label of the first line position and the last line position of the temporary file, if the first line position and the last line position are invalid labels, then delete the invalid label, if the first line position and the last line position are valid labels, Then save the configuration information corresponding to the valid label to the memory loading file, and delete the valid label and the corresponding configuration information;
[0119] The recursive calling unit 3 is used to analyze the temporary file by using the temporary file analysis unit multiple times until the temporary file is empty,...
Embodiment 3
[0148] The third embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, all or part of the method steps in the first embodiment are implemented.
[0149] The present invention realizes all or part of the process in the method of the first embodiment above, and it can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program is processed by the processor. During execution, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recor...
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