CN111240761B - Configuration file loading method and device - Google Patents

Configuration file loading method and device Download PDF

Info

Publication number
CN111240761B
CN111240761B CN202010019456.8A CN202010019456A CN111240761B CN 111240761 B CN111240761 B CN 111240761B CN 202010019456 A CN202010019456 A CN 202010019456A CN 111240761 B CN111240761 B CN 111240761B
Authority
CN
China
Prior art keywords
data
class
memory
binary
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010019456.8A
Other languages
Chinese (zh)
Other versions
CN111240761A (en
Inventor
唐超勇
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Apas Digital Cloud Information Technology Co ltd
Original Assignee
Zhengzhou Apas Digital Cloud Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Apas Digital Cloud Information Technology Co ltd filed Critical Zhengzhou Apas Digital Cloud Information Technology Co ltd
Priority to CN202010019456.8A priority Critical patent/CN111240761B/en
Publication of CN111240761A publication Critical patent/CN111240761A/en
Application granted granted Critical
Publication of CN111240761B publication Critical patent/CN111240761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a loading method and device of a configuration file, wherein the method comprises the following steps: editing a plurality of data tables according to the configuration file of the target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: basic data type, custom data type based on IDL custom, complex data type generated by combining and nesting basic data type and custom data type; generating a class of the specified language according to the specified column name and the plurality of data types; generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the binary files comprise binary structured numerical data; when the target application is started, the configuration file is loaded according to the class of the designated language and the plurality of binary files. When the configuration file is loaded, the embodiment of the application can reduce the loading time of the configuration file and quickly start the application.

Description

Configuration file loading method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for loading a configuration file.
Background
With the development of science and technology, various applications, such as game applications, shopping applications, chat applications, etc., have appeared, and these applications often have corresponding configuration files, and when these applications are started, the corresponding configuration files often need to be loaded.
Generally, the configuration files generally include complex data structures, and when the application is started and the configuration files of the application are loaded, the complex data structures need to be parsed, and the parsing process of the complex data structures usually needs to take a long time, which results in long loading time of the configuration files and thus long starting time of the application.
Disclosure of Invention
The embodiment of the application provides a method and a device for loading configuration files, which are used for solving the problem of long loading time when the configuration files of an application are loaded.
In order to solve the technical problems, the application is realized as follows:
the embodiment of the application provides a loading method of a configuration file, which comprises the following steps:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
Generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
The embodiment of the application provides a loading device of a configuration file, which comprises:
the editing unit is used for editing a plurality of data tables according to the configuration file of the target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
a first generation unit for generating a class of a specified language according to the specified column name and a plurality of data types;
a second generating unit, configured to generate a plurality of binary files according to data of different data types included in the plurality of data tables, where the plurality of binary files include binary structured numerical data;
And the loading unit is used for loading the configuration file according to the class of the appointed language and the plurality of binary files when the target application is started.
An embodiment of the present application provides an electronic device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
Embodiments of the present application provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect:
Before loading the configuration file of the application, the embodiment of the application can pre-edit the configuration file, and convert complex data structures in the configuration file, such as character strings and the like, into specified data types during pre-editing, and further convert the data types into binary structured numerical data which is easy to load, so that when the configuration file is loaded, the reverse serialization of the complex data structures in the configuration file can be avoided, and the loading time of the configuration file is shortened; in addition, when the configuration file is loaded, the class and the plurality of binary files based on the appointed language can be loaded, so that the memory can be directly mapped to the class object reference corresponding to the class from the appointed language, the data corresponding to the class object can be directly obtained in a mode that the memory offset corresponding to the class object accesses the memory where the data is located, the whole process does not need to initialize the parser and does not need to perform reverse-sequence parsing of the object, the configuration loading time of the application can be saved, the configuration loading speed can be increased, and the application can be started rapidly.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow diagram of a method of loading configuration files according to one embodiment of the present application;
FIG. 2 is a flow diagram of a method of loading configuration files according to one embodiment of the present application;
FIG. 3 is a flow diagram of a method of loading configuration files according to one embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a configuration file loading device according to an embodiment of the present application.
Detailed Description
In general, a configuration file of an application includes a complex data structure, such as a string, and when the application is started and the configuration file is loaded, the complex data structure, such as the string, needs to be deserialized, so as to analyze the complex data structure, such as the string, into a numeric type, and further load the configuration file and start the application.
However, the process of deserializing generally takes a long time, which results in a slower loading speed of the configuration file, especially for large-sized game applications, and because of the large amount of data in the configuration file of these applications, it takes a longer time to deserialize, and the loading speed of the configuration file is slower. In addition, when the deserialization is performed, a large amount of memory space is occupied, so that the memory consumption is large, and correspondingly, more memory garbage is generated.
In order to solve the above technical problems, an embodiment of the present application provides a method and an apparatus for loading a configuration file, where the method includes: editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type; generating a class of a specified language according to the specified column name and a plurality of data types; generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data; and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
Before loading the configuration file of the application, the embodiment of the application can pre-edit the configuration file, and convert complex data structures in the configuration file, such as character strings and the like, into specified data types and further into binary structured numerical data which is easy to load during pre-editing, so that the reverse serialization of the complex data structures in the configuration file can be avoided during loading the configuration file, and the loading time of the configuration file is shortened; in addition, when the configuration file is loaded, the class and the plurality of binary files based on the appointed language can be loaded, so that the memory can be directly mapped to the class object reference corresponding to the class from the appointed language, the data corresponding to the class object can be directly obtained in a mode that the memory offset corresponding to the class object accesses the memory where the data is located, the whole process does not need to initialize the parser and does not need to perform reverse-sequence parsing of the object, the configuration loading time of the application can be saved, the configuration loading speed can be increased, and the application can be started rapidly.
The technical solutions of the present application are clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that, the technical solution provided by the embodiment of the present application may be implemented by using a flatbuffers, where flatbuffers is an open-source, cross-platform, efficient, and serialization tool library that provides a c++/Java interface, and may generate, through a non-self-describing protocol, an analysis class and binary structured numerical data of a corresponding language, where the binary structured numerical data may be mapped directly to a loaded memory layout, without initializing an analyzer and a reverse-sequence analysis object, so that configuration loading time may be saved and memory garbage may not be generated in a loading process.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flow chart of a loading method of a configuration file according to an embodiment of the present application. The method is as follows.
S102: and editing a plurality of data tables according to the configuration file of the target application, wherein the plurality of data tables comprise appointed column names and a plurality of data types, and the plurality of data types comprise basic data types, custom data types obtained based on IDL custom and complex data types generated by combining and nesting the basic data types and the custom data types.
Before loading the configuration file of the target application, the configuration file can be pre-edited, and when the pre-editing is performed, a plurality of data tables can be obtained according to the data editing in the configuration file.
In this embodiment, before editing to obtain multiple data tables, IDL may be used to customize the data types to obtain custom data types. The custom data type may be one type or multiple types.
After the custom data types are obtained, complex data types can be generated by combining and nesting the custom data types and the basic data types (byte, short, int, long, float, double, boolean and char). Wherein, the complex data types can be arrays, nested and the like. In this way, when the data table is edited later, the corresponding complex data can be configured based on the complex data structure.
After the basic data type, the custom data type and the complex data type are obtained, a plurality of data tables can be edited according to the configuration file of the target application.
When editing a plurality of data tables, for each data table, a column name and a data type in the data table may be specified, and data in the configuration file may be converted into data in the data table corresponding to the column name and the data type, wherein the data type may include at least one of a base data type, a custom data type, and a complex data type.
When converting data in a configuration file into data in a data table, that is, when configuring data in a plurality of data tables, complex data such as configuration strings are avoided as much as possible, so as to avoid subsequent deserialization of the data. If it is desired to configure the data of the complex data structure, custom delimiters may be used in the data table to splice complex data, i.e., the data in the data table uses numeric types rather than string data as much as possible.
Alternatively, the plurality of data tables edited in the present embodiment may be excel tables. For ease of understanding, see table 1.
TABLE 1
A B C D E
1 Color chart
2 id Name Level Position Sub_position
3 short string short Fpos [Fpos]
4 ID Name of the name Grade Position of Sub-position
5 1 Hillary Jr. 20 10,10,10 5,5,5,7,7,7,9,9,9
6 2 Yulia 30 15,10,15 11,11,11,13,13,13
7 3 Sam 40 20,15,15 1,3,5,4,8,7,12,5,8
Table 1 is an excel table edited based on a configuration file of a certain game class application, and as can be seen from table 1, the excel table is a character table, and the table includes a designated column name id, name, level, position and sub_position, designated data types short, string, short, fpos and Fpos, and data of a plurality of characters in a game corresponding to the designated column name and data type. The data type Fpos of the column D is a custom data type, and the data type [ Fpos ] of the column E is a data type obtained by combining the custom data types.
S104: and generating a class of the appointed language according to the appointed column name and the plurality of data types.
After the plurality of data tables are edited, a class of the specified language may be generated according to the specified column names and data types included in the plurality of data tables. Where a class may be understood as a parse type and the specified language may be understood as a language recognizable by the system for loading the configuration file.
For example, the system may recognize the C++ language, and then the specified language may be the C++ language, and accordingly, a class of the C++ language may be generated.
When generating a class of a specified language, taking one of the data tables as an example, the method specifically may include:
First, the column names and data types included in the data table are converted into the data structure of the IDL description.
The column names and data types in the data table may be derived based on the translation procedure to obtain the data structure of the IDL description.
Next, the IDL description data structure is compiled using a specified compiler to generate classes in a specified language.
The specified compiler may be preferably a modified flatbuffers compiler, and the class of the specified language may be generated after compiling the data structure of the IDL description based on the modified flatbuffers compiler.
In this embodiment, when generating the class in the specified language, an offset corresponding to the class in the specified language may also be obtained, where the offset may be used to read data of a class object from the memory, where the class object is a class object generated by the class in the specified language.
After the classes of the specified languages corresponding to one data table are generated by the method, the classes of the specified languages corresponding to other data tables can be generated based on the same method.
S106: and generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the binary files comprise binary structured numerical data.
After the multiple data tables are obtained through editing, data in the multiple data tables can be converted into binary structured numerical data, and then multiple binary files are obtained. Wherein one data table may correspond to one binary file.
Taking one data size as an example, when generating the binary file corresponding to the data table, the method may include:
first, converting data in a data table into data in a specified format
The data in the appointed format can be preferably data in a JSON (JavaScript Object Notation, JS object numbered musical notation) format, wherein the JSON format is a lightweight data exchange format, and the data is stored and represented by adopting a text format completely independent of a programming language, so that the data is easy to read and write by people, and is easy to parse and generate by machines, and the network transmission efficiency is effectively improved.
Alternatively, the data in the specified format may be data in other formats, as long as the binary structured numerical data can be obtained by compiling the data in the specified format by using a specified compiler.
And secondly, compiling the data in the specified format by using a specified compiler to obtain binary structured numerical data.
The specified compiler may be the modified flatbuffers compiler, and binary structured numerical data may be obtained after compiling the data in the specified format using the modified flatbuffers compiler.
And finally, generating a binary file corresponding to the data table according to the binary structured numerical data.
After generating one binary file corresponding to one data table based on the method, binary files corresponding to other data tables can be generated based on the same method, and finally a plurality of binary files corresponding to a plurality of data tables can be obtained.
S108: and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
In S108, after the configuration of the target application is pre-edited to obtain a plurality of data tables, and further obtain a class of a specified language and a plurality of binary files containing binary structured numerical data, when the target application is started, the configuration file of the target application may be loaded according to the class of the specified language and the plurality of binary files.
When loading the configuration file of the target application according to the class and the plurality of binary files of the specified language, the method specifically may include:
first, a class object corresponding to a class of a specified language is generated from the class of the specified language.
The class object generated in this step is a null object, and the attribute of the class object includes a memory offset, where the memory offset may be an offset corresponding to the class of the specified language obtained when the class of the specified language is generated in S104.
And secondly, loading a plurality of binary files into the memory to obtain a starting address corresponding to the memory offset.
When a plurality of binary files are loaded into the memory, binary structured numerical data in the plurality of binary files can be sequentially loaded into the memory.
After loading the binary structured numerical data in the plurality of binary files into the memory, the starting addresses of the binary structured data in the memory can also be obtained.
And obtaining the access address of the target data corresponding to the class object in the memory according to the memory offset and the starting address.
After knowing the memory offset of the class object and the starting address of the binary structured numerical data in the memory, the starting address and the memory offset can be combined to obtain an access address, and the access address is the address of the target data corresponding to the class object in the memory.
And finally, reading the target data corresponding to the class object from the memory according to the access address.
After the access address is obtained, the target data corresponding to the class object can be read from the memory directly according to the access address.
And circularly executing the loading process of the configuration file until the binary structured data of a plurality of binary files in the memory are completely read, and at this time, the configuration loading of the target application can be realized.
In the loading process of the configuration file, the configuration file can be realized based on the flatbuffers, so that zero memory copying is realized and decoding is not needed when the binary file is loaded and the class object is generated, and therefore, a large amount of memory is prevented from being occupied and memory garbage is not generated in the whole loading process.
In addition, after the binary file is loaded into the memory, the memory can be directly mapped to the class object (empty object) reference, and the data corresponding to the class object can be directly obtained in a mode of accessing the memory where the data is located by the memory offset corresponding to the class object, so that an initializing analyzer is not needed in the whole process, deserialization is not needed, the time for loading the configuration of the application can be saved, the speed for loading the configuration can be increased, and the application can be started quickly.
In the above configuration loading process, considering that when the number of the plurality of binary files is relatively large or the data amount is relatively large, it takes a long time to load the plurality of binary files into the memory, when the plurality of binary files are loaded into the memory, only a part of the binary files may be loaded into the memory, another part of the binary files may not be loaded into the memory, and the data in the part of the binary files may be the data required for the application to be started, and the data in the other part of the binary files may be the data not required for the application to be started. In this way, when the configuration of the application is loaded, since a part of binary files can be loaded into the memory, the configuration loading time of the application can be further saved. The specific implementation mode is as follows.
First, before loading the plurality of binary files into the memory, it may be determined whether the number of the plurality of binary files is not less than a first threshold value, or whether the amount of data included in the plurality of binary files is not less than a second threshold value. The first threshold and the second threshold can be determined according to practical situations. The specific limitation is not particularly limited herein.
And secondly, if the number of the plurality of binary files is not smaller than a first threshold value or the data amount included in the plurality of binary files is not smaller than a second threshold value, the plurality of binary files can be combined to obtain the combined binary files.
When merging a plurality of binary files, an offset of each binary file in the merged binary file may also be recorded, where the offset may represent a position of data in each binary file in the data of the merged binary file.
Alternatively, a record file may be used to record a plurality of binary files and the correspondence between the offsets of the plurality of binary files in the merged binary file, so that the offset corresponding to each binary file may be determined subsequently based on the record file.
And finally, loading the target binary files in the combined binary files into the memory.
The data in the target binary file is the data needed when the target application is started, wherein the number of the target binary file can be one or a plurality of target binary files.
In this embodiment, when loading the target binary file into the memory, the method specifically may include:
first, the merged binary file is opened, and a file handle is acquired.
It should be noted that, the opening the merged binary file herein simply opens the binary file, and does not mean that the merged binary file is loaded into the memory. When the merged binary file is opened, a file handle may be obtained.
And secondly, when the target binary file is loaded, determining the target offset of the target binary file in the combined binary file.
Specifically, after the merged binary file is opened, when the target binary file needs to be loaded, the offset of the target binary file in the merged binary file may be obtained, where, for convenience of distinction, may be represented by the target offset. The target offset may be recorded when merging a plurality of binary files.
And finally, shifting the file handle to a target offset, and loading the target binary file into the memory.
After the target offset is obtained, the file handle can be offset to the target offset, so that the data in the target binary file can be obtained from the combined binary file according to the target offset, and the obtained data is loaded into the memory.
After loading the target binary file into the memory, a starting address corresponding to the memory offset corresponding to the generated class object can be obtained, and according to the memory offset and the starting address, an access address in the memory of target data corresponding to the class object is obtained, and according to the access address, the target data can be read from the memory, thereby realizing configuration loading. Reference is specifically made to the specific implementation of the corresponding steps in S108, and the description thereof will not be repeated here.
In the configuration loading process, only the target binary file is loaded into the memory, so that the configuration loading time can be saved, the application can be started quickly, and in addition, the data loaded into the memory can be reduced, so that the memory space occupied in the configuration loading process can be reduced.
Optionally, in the case of loading the target binary file into the memory, after the target application is started based on the target binary file, when the target application is run, the binary file which is not loaded in the combined binary file may also be loaded into the memory when needed. In this way, a segmented dynamic loading of multiple binary files may be achieved.
For easy understanding of the technical solutions provided in the present application, reference may be made to fig. 2 and 3.
Fig. 2 is a flow chart of a loading method of a configuration file according to an embodiment of the present application. The embodiment shown in fig. 2 is illustrated by taking an example that the number of the plurality of binary files is smaller than the first threshold value and the data amount of the plurality of binary files is smaller than the second threshold value, and specifically may include the following steps:
s201: and customizing the data type based on the IDL to obtain the custom data type.
S202: and editing according to the configuration file of the target application to obtain a plurality of data tables.
Wherein the plurality of data tables include a specified column name and a plurality of data types, the plurality of data types may include at least one of: basic data types, custom data types, and complex data types that are nested from combinations of basic data types and custom data types.
S203: the column names and data types included in the data table are converted into a data structure of the IDL description, and the data in the data table is converted into data of a specified format.
This step may be implemented by a conversion program, and the data in the specified format may preferably be data in JSON format.
S204: and compiling the IDL description data structure and the data in the specified format by using a specified compiler to obtain the class and binary structured numerical data in the specified language.
Specifically, the modified flatbuffers may be used to compile the data structure described by IDL to obtain a class of a specified language, and the modified flatbuffers may be used to compile data of a specified format to obtain binary structured numerical data.
S205: a plurality of binary files are generated from the binary structured data.
S206: a class object corresponding to the class of the specified language is generated from the class of the specified language.
The class object generated here is a null object, and the attribute of the class object includes a memory offset, where the memory offset is specifically a memory offset obtained when generating a class of a specified language.
S207: and sequentially loading the plurality of binary files into the memory to obtain the starting address corresponding to the memory offset of the class object.
S208: and obtaining the access address of the target data corresponding to the class object in the memory according to the starting address and the memory offset of the class object.
S209: and reading target data corresponding to the class object from the memory according to the access address.
And S207 to S209 are circularly executed until the binary structured data of a plurality of binary files in the memory are completely read, and at this time, the configuration loading of the target application can be realized.
The specific implementation of the steps in the embodiment shown in fig. 2 may refer to the specific implementation of the corresponding steps in the embodiment shown in fig. 1, and a description thereof will not be repeated here.
Fig. 3 is a flow chart illustrating a loading method of a configuration file according to an embodiment of the present application. The embodiment shown in fig. 3 is illustrated by taking an example that the number of the plurality of binary files is not smaller than a first threshold value, or that the data amount of the plurality of binary files is not smaller than a second threshold value, and specifically may include the following steps:
s301: and customizing the data type based on the IDL to obtain the custom data type.
S302: and editing according to the configuration file of the target application to obtain a plurality of data tables.
S303: the column names and data types included in the data table are converted into a data structure of the IDL description, and the data in the data table is converted into data of a specified format.
S304: and compiling the IDL description data structure and the data in the specified format by using a specified compiler to obtain the class and binary structured numerical data in the specified language.
S305: a plurality of binary files are generated from the binary structured data.
Specific implementations of the above S301 to S205 may be referred to as S201 to S205, and the description thereof will not be repeated here.
S306: and merging the plurality of binary files to obtain a merged binary file.
When merging a plurality of binary files, the offsets of the plurality of binary files in the merged binary file may be recorded.
S307: a class object corresponding to the class of the specified language is generated from the class of the specified language.
The class object generated here is a null object, and the attribute of the class object includes a memory offset, where the memory offset is specifically a memory offset obtained when generating a class of a specified language.
S308: and opening the merged binary file to obtain a file handle.
S309: and when the target binary file is loaded, acquiring the target offset of the target binary file in the combined binary file.
The target binary file is one or more files of a plurality of binary files, and the data in the target binary file is the data required by the target application in configuration loading.
S310: and shifting the file handle to the target offset, and loading the target binary file into the memory to obtain the starting address corresponding to the memory offset of the class object.
S311: and obtaining the access address of the target data corresponding to the class object in the memory according to the starting address and the memory offset of the class object.
S312: and reading target data corresponding to the class object from the memory according to the access address.
And (3) circularly executing the steps (309) to (311) until the binary structured data of the target binary file is completely read from the memory, and at this time, the configuration loading of the target application can be realized.
S313: and after the target application is started, loading the unloaded binary files in the combined binary files into the memory.
By loading unloaded binary file data in the running process of the target application, the segmented dynamic loading of a plurality of binary files can be realized.
The specific implementation of the steps in the embodiment shown in fig. 3 may refer to the specific implementation of the corresponding steps in the embodiment shown in fig. 1, and a description thereof will not be repeated here.
Before loading the configuration file of the application, the embodiment of the application can pre-edit the configuration file, and convert complex data structures in the configuration file, such as character strings and the like, into specified data types and further into binary structured numerical data which is easy to load during pre-editing, so that the reverse serialization of the complex data structures in the configuration file can be avoided during loading the configuration file, and the loading time of the configuration file is shortened; when the configuration file is loaded, the class and the plurality of binary files based on the appointed language can be loaded, so that the memory can be directly mapped to the class object reference corresponding to the class from the appointed language, the data corresponding to the class object can be directly obtained in a mode that the memory offset corresponding to the class object accesses the memory where the data is located, the whole process does not need to initialize a parser and does not need to parse the object in a reverse sequence, the configuration loading time of the application can be saved, the configuration loading speed can be increased, and the application can be started rapidly.
In addition, under the condition that the number of binary files to be loaded is large or the data volume is large, the plurality of binary files can be loaded in a segmented dynamic loading mode, so that on one hand, the time for configuration loading can be saved, and on the other hand, the occupied space of a memory in the configuration loading process can be reduced.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 4, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a loading device of the configuration file on a logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
Generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
The method executed by the configuration file loading device disclosed in the embodiment shown in fig. 4 of the present application may be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may further execute the methods of fig. 1 to 3 and implement the functions of the loading device of the configuration file in the embodiments shown in fig. 1 to 3, which are not described herein again.
Of course, other implementations, such as a logic device or a combination of hardware and software, are not excluded from the electronic device of the present application, that is, the execution subject of the following processing flow is not limited to each logic unit, but may be hardware or a logic device.
The embodiments also provide a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, enable the portable electronic device to perform the method of the embodiments shown in fig. 1-3, and in particular to perform the operations of:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
Generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
and when the target application is started, loading the configuration file according to the class of the appointed language and the plurality of binary files.
Fig. 5 is a schematic structural diagram of a configuration file loading device according to an embodiment of the present application. The device may specifically include: an editing unit 51, a first generating unit 52, a second generating unit 53, and a loading unit 54, wherein:
an editing unit 51, configured to edit a plurality of data tables according to a configuration file of a target application, where the plurality of data tables include a specified column name and a plurality of data types, and the plurality of data types include at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
a first generation unit 52 that generates a class of a specified language from the specified column name and the plurality of data types;
A second generating unit 53 that generates a plurality of binary files including binary structured numerical data according to data of different data types included in the plurality of data tables;
and a loading unit 54 for loading the configuration file according to the class of the specified language and the plurality of binary files when the target application is started.
Optionally, the first generating unit 52 generates a class of a specified language according to the specified column name and the plurality of data types, including:
for one of the data tables, the following is performed:
converting column names and data types included in the data table into a data structure of IDL description;
compiling the IDL description data structure by using a specified compiler to generate the class of the specified language.
Optionally, the second generating unit 53 generates a plurality of binary files according to data of different data types included in the plurality of data tables, including:
for one of the data tables, the following is performed:
converting the data in the data table into data in a specified format;
compiling the data in the specified format by using a specified compiler to obtain binary structured numerical data;
And generating a binary file corresponding to the data table according to the binary structured numerical data.
Optionally, the loading unit 54 loads the configuration file according to the class of the specified language and the plurality of binary files, including:
generating a class object corresponding to the class of the appointed language according to the class of the appointed language, wherein the attribute of the class object comprises a memory offset, and the memory offset is obtained when the class of the appointed language is generated;
loading the plurality of binary files into a memory to obtain a starting address corresponding to the memory offset;
obtaining an access address of target data corresponding to the class object in a memory according to the memory offset and the starting address;
and reading the target data from the memory according to the access address.
Optionally, before loading the plurality of binary files into the memory, the loading unit 54 determines whether the number of the plurality of binary files is not less than a first threshold value, or whether the amount of data contained in the plurality of binary files is not less than a second threshold value;
if yes, combining the plurality of binary files to obtain a combined binary file;
The loading unit 54 loads the plurality of binary files into the memory, including:
and loading the target binary files in the merged binary files into a memory, wherein the target binary files are part of the plurality of binary files.
Optionally, the loading unit 54 loads the target binary file in the merged binary file into the memory, including:
opening the merged binary file to obtain a file handle;
when loading the target binary file, acquiring a target offset of the target binary file in the combined binary file;
and shifting the file handle to the target offset, and loading the target binary file into a memory.
Optionally, after the target application is started, when the target application is running, the loading unit 54 loads the unloaded binary files in the combined binary files into the memory.
The configuration file loading device provided in the embodiment of the present application may further execute the methods of fig. 1 to 3, and implement the functions of the configuration file recording device in the embodiment shown in fig. 1 to 3, which are not described herein again.
In summary, the foregoing description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.

Claims (8)

1. A method for loading a configuration file, comprising:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
Generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
loading the configuration file according to the class of the appointed language and the plurality of binary files when the target application is started;
wherein generating a class of the specified language according to the specified column name and the plurality of data types, comprises:
for one of the data tables, the following is performed:
converting column names and data types included in the data table into a data structure of IDL description;
compiling the IDL description data structure by using a specified compiler to generate a class of the specified language;
loading the configuration file according to the class of the specified language and the plurality of binary files, including:
generating a class object corresponding to the class of the appointed language according to the class of the appointed language, wherein the attribute of the class object comprises a memory offset, and the memory offset is obtained when the class of the appointed language is generated;
Loading the plurality of binary files into a memory to obtain a starting address corresponding to the memory offset;
obtaining an access address of target data corresponding to the class object in a memory according to the memory offset and the starting address;
and reading the target data from the memory according to the access address.
2. The method of claim 1, wherein generating a plurality of binary files from data of different data types included in the plurality of data tables comprises:
for one of the data tables, the following is performed:
converting the data in the data table into data in a specified format;
compiling the data in the specified format by using a specified compiler to obtain binary structured numerical data;
and generating a binary file corresponding to the data table according to the binary structured numerical data.
3. The method of claim 1, further comprising, prior to loading the plurality of binary files into memory:
judging whether the number of the plurality of binary files is not smaller than a first threshold value or whether the data amount contained in the plurality of binary files is not smaller than a second threshold value;
If yes, combining the plurality of binary files to obtain a combined binary file;
the loading the plurality of binary files into the memory includes:
and loading the target binary files in the merged binary files into a memory, wherein the target binary files are part of the plurality of binary files.
4. The method of claim 3, wherein loading the target binary file of the merged binary file into the memory comprises:
opening the merged binary file to obtain a file handle;
when loading the target binary file, acquiring a target offset of the target binary file in the combined binary file;
and shifting the file handle to the target offset, and loading the target binary file into a memory.
5. A method as claimed in claim 3, wherein the method further comprises:
and after the target application is started, loading the unloaded binary files in the combined binary files into a memory when the target application is operated.
6. A device for loading a configuration file, comprising:
The editing unit is used for editing a plurality of data tables according to the configuration file of the target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
a first generation unit for generating a class of a specified language according to the specified column name and a plurality of data types;
a second generating unit, configured to generate a plurality of binary files according to data of different data types included in the plurality of data tables, where the plurality of binary files include binary structured numerical data;
the loading unit is used for loading the configuration file according to the class of the appointed language and the plurality of binary files when the target application is started;
the first generating unit is used for executing the following operations aiming at one of the data tables:
converting column names and data types included in the data table into a data structure of IDL description;
compiling the IDL description data structure by using a specified compiler to generate a class of the specified language;
The second generating unit is used for:
generating a class object corresponding to the class of the appointed language according to the class of the appointed language, wherein the attribute of the class object comprises a memory offset, and the memory offset is obtained when the class of the appointed language is generated;
loading the plurality of binary files into a memory to obtain a starting address corresponding to the memory offset;
obtaining an access address of target data corresponding to the class object in a memory according to the memory offset and the starting address;
and reading the target data from the memory according to the access address.
7. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
Generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
loading the configuration file according to the class of the appointed language and the plurality of binary files when the target application is started;
wherein generating a class of the specified language according to the specified column name and the plurality of data types, comprises:
for one of the data tables, the following is performed:
converting column names and data types included in the data table into a data structure of IDL description;
compiling the IDL description data structure by using a specified compiler to generate a class of the specified language;
loading the configuration file according to the class of the specified language and the plurality of binary files, including:
generating a class object corresponding to the class of the appointed language according to the class of the appointed language, wherein the attribute of the class object comprises a memory offset, and the memory offset is obtained when the class of the appointed language is generated;
Loading the plurality of binary files into a memory to obtain a starting address corresponding to the memory offset;
obtaining an access address of target data corresponding to the class object in a memory according to the memory offset and the starting address;
and reading the target data from the memory according to the access address.
8. A computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to:
editing a plurality of data tables according to a configuration file of a target application, wherein the plurality of data tables comprise designated column names and a plurality of data types, and the plurality of data types comprise at least one of the following: a basic data type, a custom data type obtained based on IDL custom, and a complex data type generated by combining and nesting the basic data type and the custom data type;
generating a class of a specified language according to the specified column name and a plurality of data types;
generating a plurality of binary files according to the data of different data types included in the plurality of data tables, wherein the plurality of binary files comprise binary structured numerical data;
Loading the configuration file according to the class of the appointed language and the plurality of binary files when the target application is started; wherein generating a class of the specified language according to the specified column name and the plurality of data types, comprises:
for one of the data tables, the following is performed:
converting column names and data types included in the data table into a data structure of IDL description;
compiling the IDL description data structure by using a specified compiler to generate a class of the specified language;
loading the configuration file according to the class of the specified language and the plurality of binary files, including:
generating a class object corresponding to the class of the appointed language according to the class of the appointed language, wherein the attribute of the class object comprises a memory offset, and the memory offset is obtained when the class of the appointed language is generated;
loading the plurality of binary files into a memory to obtain a starting address corresponding to the memory offset;
obtaining an access address of target data corresponding to the class object in a memory according to the memory offset and the starting address;
and reading the target data from the memory according to the access address.
CN202010019456.8A 2020-01-08 2020-01-08 Configuration file loading method and device Active CN111240761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010019456.8A CN111240761B (en) 2020-01-08 2020-01-08 Configuration file loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010019456.8A CN111240761B (en) 2020-01-08 2020-01-08 Configuration file loading method and device

Publications (2)

Publication Number Publication Date
CN111240761A CN111240761A (en) 2020-06-05
CN111240761B true CN111240761B (en) 2023-05-30

Family

ID=70864262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010019456.8A Active CN111240761B (en) 2020-01-08 2020-01-08 Configuration file loading method and device

Country Status (1)

Country Link
CN (1) CN111240761B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656475A (en) * 2021-08-17 2021-11-16 在线途游(北京)科技有限公司 Data conversion method and device based on DSL intermediate description language

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077335A (en) * 2013-05-07 2014-10-01 腾讯科技(深圳)有限公司 Methods, devices and system for serializing and deserializing structured data
CN105608088A (en) * 2014-11-19 2016-05-25 中国航空工业集团公司西安飞机设计研究所 Method for automatically creating database and dynamically recording data on the basis of configuration file
CN105760534A (en) * 2016-03-10 2016-07-13 上海晶赞科技发展有限公司 User-defined serializable data structure, hadoop cluster, server and application method thereof
CN105787128A (en) * 2016-03-29 2016-07-20 四川秘无痕信息安全技术有限责任公司 Method for recovering Java serialized file data
CN107632828A (en) * 2016-07-18 2018-01-26 迈普通信技术股份有限公司 More dts files support method, compilation device and embedded device
CN109636884A (en) * 2018-10-25 2019-04-16 阿里巴巴集团控股有限公司 Animation processing method, device and equipment
CN110162306A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 The just-ahead-of-time compilation method and apparatus of system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8327316B2 (en) * 2008-09-30 2012-12-04 Ics Triplex Isagraf Inc. Compilation model

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077335A (en) * 2013-05-07 2014-10-01 腾讯科技(深圳)有限公司 Methods, devices and system for serializing and deserializing structured data
CN105608088A (en) * 2014-11-19 2016-05-25 中国航空工业集团公司西安飞机设计研究所 Method for automatically creating database and dynamically recording data on the basis of configuration file
CN105760534A (en) * 2016-03-10 2016-07-13 上海晶赞科技发展有限公司 User-defined serializable data structure, hadoop cluster, server and application method thereof
CN105787128A (en) * 2016-03-29 2016-07-20 四川秘无痕信息安全技术有限责任公司 Method for recovering Java serialized file data
CN107632828A (en) * 2016-07-18 2018-01-26 迈普通信技术股份有限公司 More dts files support method, compilation device and embedded device
CN110162306A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 The just-ahead-of-time compilation method and apparatus of system
CN109636884A (en) * 2018-10-25 2019-04-16 阿里巴巴集团控股有限公司 Animation processing method, device and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Zhu Wang 等."An Asymmetric Data Conversion Scheme based on Binary Tags".《2010 10th IEEE International Conference on Computer and Information Technology》.2010,全文. *
李颖 ; 胡明 ; .基于C语言实现的IDL编译器.计算机技术与发展.2013,(第03期),全文. *

Also Published As

Publication number Publication date
CN111240761A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
JP5325925B2 (en) Optimization of N-base type arithmetic expressions
US7473293B2 (en) Processor for executing instructions containing either single operation or packed plurality of operations dependent upon instruction status indicator
US11656880B2 (en) Function evaluation using multiple values loaded into registers by a single instruction
WO2007016808A1 (en) A compiling and translating method and apparatus
CN112230934B (en) Method and device for converting code language
CN112631684B (en) Executable program running method and device, electronic equipment and computer storage medium
CN111427578B (en) Data conversion method, device and equipment
CN114780100B (en) Compiling method, electronic device and storage medium
CN111240761B (en) Configuration file loading method and device
RU2128362C1 (en) Device for preparation of calling image and its execution
CN109032572B (en) Method for Java program method internal connection based on byte code
CN116700629B (en) Data processing method and device
CN108984223B (en) Program call decoupling method and device, electronic equipment and storage medium
CN111475150A (en) Cross-language binding method, device, equipment and storage medium
CN116483481A (en) Firmware library calling method, device, equipment and storage medium
CN112154413A (en) Configuration file generation method and device and storage medium
CN116048731A (en) Code processing method, device, electronic equipment and storage medium
CN113900657A (en) Method for reading data rule, electronic device and storage medium
JP5399601B2 (en) Implementation code development system and implementation code development program
CN113176877A (en) Entity class generation method, device and storage medium
CN117075912B (en) Method for program language conversion, compiling method and related equipment
CN116700840B (en) File execution method, device, electronic equipment and readable storage medium
CN113495727B (en) Business component development method, device, electronic equipment and medium
CN116610324A (en) Method and system for optimizing ebpf program CO-RE
CN116931939A (en) Attribute access method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant