CN112130811A - Data processing method and device, storage medium and electronic equipment - Google Patents

Data processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112130811A
CN112130811A CN201910548854.6A CN201910548854A CN112130811A CN 112130811 A CN112130811 A CN 112130811A CN 201910548854 A CN201910548854 A CN 201910548854A CN 112130811 A CN112130811 A CN 112130811A
Authority
CN
China
Prior art keywords
scene
data
template
sub
templates
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.)
Pending
Application number
CN201910548854.6A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910548854.6A priority Critical patent/CN112130811A/en
Publication of CN112130811A publication Critical patent/CN112130811A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

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

Abstract

The disclosure belongs to the technical field of computers, and relates to a data processing method and device, a computer readable storage medium and electronic equipment. The method comprises the following steps: determining a scene template corresponding to a scene object; if the scene template meets the first preset condition, separating the scene data according to the attribute of the scene data in the scene object; and determining dynamic data in the scene data based on the result of the separation processing, and copying and storing the data. According to the method and the device, after the scene data are separated, only the dynamic data are locally copied, so that on one hand, heavy workload of copying and copying all data is reduced, deserialization frequency is reduced, and resources such as a CPU (central processing unit) are saved; on the other hand, the dynamic data can be stored in the memory, so that the operation flow of data copying is reduced, and the efficiency of writing in the object is improved.

Description

Data processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, a data processing apparatus, a computer-readable storage medium, and an electronic device.
Background
In internet applications, data exchange between servers mostly uses character strings, such as JS Object Notation (JSON), and data inside servers are mostly realized through data sharing. For example, in a store decoration system, templates used by a merchant to decorate floors are stored in memory or in a cache. When a merchant finishes decoration, template data needs to be deserialized into template data objects, then the template data are filled into decoration instance data according to requirements, and finally the data are converted into JSON character strings. Correspondingly, the front-end server can dynamically construct a webpage according to the received data and provide the constructed webpage for the client browser. To enhance the experience of the merchant and the user, the data processing performance in the server is critical. Therefore, how to improve the data conversion inside the server, especially the modification efficiency of the shared data, is a topic worthy of study.
The following two approaches are generally adopted to improve the modification efficiency of shared data: firstly, generating a data object by adopting a reflection mechanism; second, data objects are generated using deserialization, such as the fastjson library (a java library) or java (computer programming language) native deserialization. However, both of these approaches use a reflection mechanism, which consumes excessive system resources and processing time and cannot meet the processing requirements in a high concurrency environment. In addition, the second approach is less applicable to generic objects.
In view of the above, there is a need in the art to develop a new data processing method and apparatus.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a data processing method, a data processing apparatus, a computer-readable storage medium, and an electronic device, which overcome, at least to some extent, the problems of excessive data sharing consumption and inefficient data modification due to the limitations of the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of embodiments of the present invention, there is provided a data processing method, the method including: determining a scene template corresponding to a scene object; if the scene template meets a first preset condition, separating the scene data according to the attribute of the scene data in the scene object; and determining dynamic data in the scene data based on the result of the separation processing, and copying and storing the dynamic data.
In an exemplary embodiment of the present invention, if the scene template satisfies a first preset condition, the separating the scene data according to the attribute of the scene data in the scene object includes: determining a sub-thread in a running state, and extracting a plurality of sub-scene templates in the sub-thread; inquiring whether other sub-scene templates identical to one of the sub-scene templates exist in the sub-threads; and if other sub-scene templates identical to the sub-scene template exist, performing separation processing on the scene data according to the attribute of the scene data in the scene object.
In an exemplary embodiment of the present invention, if the scene template satisfies a first preset condition, the separating the scene data according to the attribute of the scene data in the scene object includes: determining a main thread in a running state, and determining a plurality of sub-threads in the running state in the main thread; extracting an operation scene template in an operation state in the sub thread, and inquiring whether other operation scene templates same as the operation scene template exist or not; and if other operation scene templates identical to the operation scene template exist, separating the scene data according to the attributes of the scene data in the scene object.
In an exemplary embodiment of the invention, the method further comprises: a child sub-container object and receiving a create request; and creating the scene object in the child container object according to the creation request.
In an exemplary embodiment of the invention, after copying the dynamic data for storage, the method further comprises: modifying the copied dynamic data according to the scene template to determine target data; and if the target data meet a second preset condition, filling the target data into the scene template so as to determine a scene interface corresponding to the scene object.
In an exemplary embodiment of the invention, the method further comprises: storing the target data in a parent container object associated with the child container object.
In an exemplary embodiment of the present invention, the scene template includes a layout and/or a style for defining the scene object.
According to a second aspect of embodiments of the present invention, there is provided a data processing apparatus, the apparatus comprising: the template determining module is configured to determine scene templates corresponding to the scene objects respectively; wherein, one scene object corresponds to one or more scene templates; the data separation module is configured to separate the scene data according to the attribute of the scene data in the scene object if the scene template meets a first preset condition; and the data copying module is configured to determine dynamic data in the scene data based on the result of the separation processing, and copy the dynamic data for storage.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus including: a processor and a memory; wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement the data processing method of any of the above exemplary embodiments.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data processing method in any of the above-described exemplary embodiments.
As can be seen from the foregoing technical solutions, the data processing method, the data processing apparatus, the computer storage medium and the electronic device in the exemplary embodiments of the present invention have at least the following advantages and positive effects:
in the method and the device provided by the exemplary embodiment of the disclosure, the scene data is separated, and only the dynamic data is locally copied, so that on one hand, the copying and copying of all data are avoided, the frequency of deserialization is avoided, and resources such as a CPU (central processing unit) are saved; on the other hand, the dynamic data can be stored in the memory, so that the copying and caching of the data are reduced, and the efficiency of writing the object is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 schematically illustrates a flow chart of a data processing method in an exemplary embodiment of the disclosure;
FIG. 2 schematically illustrates a flow chart of a method of separately processing scene data in an exemplary embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of another method for separately processing scene data in an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a method of creating a scene object in an exemplary embodiment of the disclosure;
FIG. 5 schematically illustrates a flow chart of a method of determining a scene interface in an exemplary embodiment of the disclosure;
FIG. 6 schematically illustrates a flow diagram of a method of data processing in an application scenario in an exemplary embodiment of the disclosure;
FIG. 7 schematically illustrates a flow diagram of a method of separately processing the data in an application scenario in an exemplary embodiment of the disclosure;
fig. 8 schematically shows a schematic structural diagram of a data processing apparatus in an exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates an electronic device for implementing a data processing method in an exemplary embodiment of the disclosure;
fig. 10 schematically illustrates a computer-readable storage medium for implementing a data processing method in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first" and "second", etc. are used merely as labels, and are not limiting on the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
In view of the problems in the related art, the present disclosure provides a data processing method. Fig. 1 shows a flow chart of a data processing method, which, as shown in fig. 1, comprises at least the following steps:
and S101, determining a scene template corresponding to the scene object.
And S102, if the scene template meets a first preset condition, separating the scene data according to the attribute of the scene data in the scene object.
And S103, determining dynamic data in the scene data based on the result of the separation processing, and copying the dynamic data for storage.
In the exemplary embodiment of the disclosure, after the scene data is separated, only the dynamic data is locally copied, so that on one hand, heavy workload of copying and copying all data is reduced, deserialization frequency is reduced, and resources such as a CPU (central processing unit) are saved; on the other hand, the dynamic data can be stored in the memory, so that the operation flow of data copying is reduced, and the efficiency of writing in the object is improved.
The respective steps of the data processing method will be described in detail below.
In step S101, a scene template corresponding to a scene object is determined.
In an exemplary embodiment of the present disclosure, the scene object may be an object for a scene interface display, and a scene template may be included in the scene object. Each scene object may correspond to one or more scene templates, that is, one scene template may be dedicated to one scene object, and a plurality of scene objects may share one scene template. The scene template is mainly used for defining the layout or display mode of the scene objects in the scene interface or defining the layout and display mode of the scene objects. Wherein the scene interface is created by a scene object. One scene object corresponds to one scene interface. In an alternative embodiment, the scene template includes a layout and/or style for defining scene objects. For example, the scene object may be a floor to be decorated, and thus, the style of the scene object may be a floor decoration style including an article, a spatial posture, and the like; the layout of the scene objects may include specific placement positions of articles, furniture, and the like within the floor. In this optional embodiment, given the layout and style of the scene object, a fast generation and display manner is provided for the scene interface, so that the scene interface can be quickly generated by the scene object according to the layout and style in the scene template, and the generation and rendering of the scene interface are facilitated.
The scene template may be defined using a Cascading Style Sheets (CSS) file. After a scene object is created, when a corresponding scene interface needs to be displayed, the scene object can load a scene template corresponding to the scene object; when the scene object exits, the scene template corresponding to the scene object may be released. Thus, when a scene object is created, the corresponding scene template is already determined.
In step S102, if the scene template satisfies the first preset condition, the scene data is separated according to the attribute of the scene data in the scene object.
In an exemplary embodiment of the present disclosure, scene data may also be included in the scene object, where the scene data is data about the position, size, and the like of the scene in which the scene object is located and data about the position, size, and the like of other objects in the scene. The first preset condition is a condition for determining whether the scene data in the scene object is to be subjected to the separation processing, and the first preset condition may be preset according to an attribute of the scene data.
In an alternative embodiment, fig. 2 shows a flowchart of a method for separately processing scene data, as shown in fig. 2, the method at least comprises the following steps: in step S201, a sub-thread in a running state is determined, and a plurality of sub-scene templates in the sub-thread are extracted. For example, a child thread may be a thread that executes scene data populating a floor to be decorated in a scene template. In this thread, there may be multiple sub-scene templates, and these sub-scene templates may be the same or different. Thus, multiple sub-scene templates in a sub-thread may be determined. The thread may be determined based on the name of the thread, the id number of the thread, and the like. In step S202, it is queried in the child thread whether there are other child scene templates that are the same as one of the child thread templates. After receiving the query request, two sub-scene templates may be compared to determine whether the same sub-scene template exists in the same thread, and the same sub-scene template is referred to multiple times. In step S203, if there are other sub-scene templates that are the same as the sub-scene template, the scene data is separated according to the attribute of the scene data in the scene object. If there are other sub-scene templates that are the same as a sub-scene template, that is, the reference count of a sub-scene template is greater than 1, the sub-scene template may be separated according to the attribute of the scene data. The attribute may be mobility of the scene data, that is, static data and dynamic data are separated dynamically and statically. The static data can be data which basically does not change, such as static resources (files such as HTML, JavaScript, CSS and img) of the website; dynamic data may be data that is frequently accessed and changed by background applications and the like. For example, for two sets of floors to be decorated and maintained owned by the same merchant, the merchant can select the same decoration template to decorate the two sets of floors to be decorated and maintained. In this scenario, the reference count of the decorated template may be greater than 1, and therefore, the scene data needs to be subjected to dynamic-static separation processing.
In an alternative embodiment, fig. 3 shows a flow chart of another method for separately processing scene data, and as shown in fig. 3, the method may include at least the following steps: in step S301, a main thread in a running state is determined, and a plurality of sub-threads in a running state among the main threads are determined. For example, the sub-threads may be threads that execute scene data of the floor to be decorated to fill in the scene template, and correspondingly, the thread that generates the sub-threads is the main thread, which is executed when the program starts. Thus, determining a main thread in a running state allows determining a plurality of sub-threads therein based on the creation relationship. In step S302, the operation scene template in the operation state is extracted in the sub thread, and it is queried whether there are other operation scene templates that are the same as the operation scene template. In a high concurrency environment, there may be a case where a plurality of sub-threads are in a running state for all the sub-threads of the main thread. Therefore, a plurality of operation scene templates in an operation state can be determined according to the name of the thread, the id number of the thread, and the like. After receiving the query request, two run scenario templates may be compared to determine whether there are other run scenario templates that are the same as one run scenario template. In step S303, if there is another operation scene template that is the same as the operation scene template, the scene data is separated according to the attribute of the scene data in the scene object. If there are other operation scene templates that are the same as one operation scene template, that is, the reference count of one operation scene template is greater than 1, the operation scene template may be separated according to the attribute of the scene data. The attribute may be mobility of the scene data, that is, static data and dynamic data are separated dynamically and statically. The static data can be data which basically does not change, such as static resources (files such as HTML, JavaScript, CSS and img) of the website; dynamic data may be data that is frequently accessed and changed by background applications and the like. For example, when two different merchants decorate a floor to be decorated and owned by the same merchant, the same decoration template may be selected, which also belongs to the case that the reference count of the decoration template is greater than 1, and dynamic and static separation processing needs to be performed on scene data in the scene.
In an exemplary embodiment of the present disclosure, fig. 4 shows a flowchart of a method of creating a scene object, which, as shown in fig. 4, comprises at least the following steps: in step S401, the child sub-container object is started, and a creation request is received. When the application is started, a container object is created. One application may contain one or more container objects, and different application portals may correspond to different container objects. The container object may be an object for window presentation, a presentation frame is provided, for example, a page or a window is provided, and a name or an identification of itself may be included in the container object. In step S402, a scene object is created in the child container object according to the creation request. According to the logic of the application program, a certain scene object in the container object is created (for example, a scene object corresponding to a main interface of the application program), and the scene object is a scene object which needs to be interface-displayed currently. One container object may correspond to one or more scene objects. The method for the container object may include a method for displaying the scene object, and a scene interface corresponding to the scene object may be displayed in a window corresponding to the container object by using a certain display method. The method included in one container object may also include other methods for managing the life cycle of the scene object, for example, a method for closing the scene object, a method for hiding the scene object, and the like, which is not particularly limited in this exemplary embodiment.
In an exemplary embodiment of the present disclosure, fig. 5 illustrates a method of determining a scene interface, which, as illustrated in fig. 5, includes at least the steps of: in step S501, the copied dynamic data is modified according to the scene template to determine target data. Because different scene templates have different requirements on the type or format of data, the same dynamic data needs to be filled into different scene templates to modify the original dynamic data. In order to avoid losing the original dynamic data in actual use, the dynamic data can be copied. According to the requirement of the scene template on data, the copied dynamic data of the scene template is modified, the modified dynamic data can be determined as target data, and the original dynamic data is stored after being serialized, for example, in a hard disk, so that the loss is avoided. In step S502, if the target data meets the second preset condition, the target data is filled into the scene template to determine a scene interface corresponding to the scene object. And presetting a second preset condition according to the data attribute of the dynamic data, wherein the second preset condition is a condition for screening the dynamic data according to the data attribute. If the target data meets the second preset condition, the target data can be filled into the scene template. For example, for a floor to be decorated, the target data meets the second preset condition, and it can be determined that the decorated floor can be decorated according to the scene template corresponding to the target data, that is, the target data can be filled into the layout and/or style of the expected decoration of the floor to be decorated, so as to determine the specific placement positions of the articles, furniture and the like of the floor to be decorated, the floor decoration style of the articles, the space postures and the like. In an alternative embodiment, the target data may be stored in a parent container object associated with a child container object. To facilitate continued use of the target data thereafter, the target data may also be stored in parent container objects that are correspondingly associated with child containers. Because the child container object can call the data in the parent container object, each target data is merged in the parent container object, so that the storage is convenient, and each child container object can call the updated data conveniently.
The following describes the data processing method in the embodiment of the present disclosure in detail with reference to an application scenario.
Taking a floor to be decorated as a scene object, fig. 6 shows a flow diagram of a data processing method in an application scene, and as shown in fig. 6, in order to accelerate access to a scene template, the scene object is stored in a memory through guava (a java library), so that the read-write times of a cache server can be reduced, the operations of storing a cached data sequence and deserializing can be avoided, and the loss of network performance caused by copying and copying data can be reduced. The parent container object of the floor to be decorated is a root container, and static data, namely the style and layout of the floor to be decorated, and dynamic data, namely the data in the corresponding data source are stored in the root container. As a parent container, the data in the parent container may be sent to a container and a sibling container that is the same as the container, and the two containers store static data and dynamic data obtained from a root container respectively. Similarly, the two child containers also hold static data and dynamic data obtained from the containers, respectively. Aiming at dynamic data in a data source, the data can be screened through set conditions, so that different floors to be decorated can be decorated by using different scene templates.
In order not to affect the data in the memory, the dynamic data may be copied. Fig. 7 is a flowchart illustrating a method for separating scene data, and as shown in fig. 7, the scene data is subjected to dynamic-static separation processing according to the fluidity of the data. Data such as styles, layouts and the like in the scene template are stored on the left side of the container, and the data are basically not changed in the rendering process of the decoration template; the sample data in the scene template is stored on the right side of the container, and even if the same template is used for different floors, the data may be different. According to the fluidity difference of the two parts of data, the two parts are subjected to dynamic and static separation processing, and the dynamic and static separation function can be realized in the form of pseudo codes and the like, and the specific encoding mode is not particularly limited in this exemplary embodiment.
For example, the encoding process can be determined through the following two scenarios:
a. in the same thread, the same scene template exists;
b. in the current memory, there are multiple threads executing the same scene template.
When each thread executes the same scene template, the using times of the scene template are accumulated, and after the execution is finished, the decrement operation of the response is executed. And when the judgment condition a or b is met, the reference count of the scene template is greater than 1, and the judgment result is true. And under the condition that the judgment result is true, performing dynamic and static separation processing on the scene data, and further copying the dynamic data. Since the child container can access the data in the parent container, the partially copied dynamic data can be fetched and merged and then saved in the root container for the root container to refer to the merged data.
In the exemplary embodiment of the disclosure, after the scene data is separated, only the dynamic data is locally copied, so that on one hand, heavy workload of copying and copying all data is reduced, deserialization frequency is reduced, and resources such as a CPU (central processing unit) are saved; on the other hand, the dynamic data can be stored in the memory, so that the operation flow of data copying is reduced, and the efficiency of writing in the object is improved.
Further, in an exemplary embodiment of the present disclosure, a data processing apparatus is also provided. Fig. 8 shows a schematic structural diagram of a data processing apparatus, and as shown in fig. 8, the data processing apparatus 800 may include: a template determination module 801, a data separation module 802, and a data copy module 803. Wherein:
a template determining module 801 configured to determine scene templates corresponding to the scene objects, respectively; wherein, one scene object corresponds to one or more scene templates; a data separation module 802, configured to, if the scene template meets a first preset condition, perform separation processing on the scene data according to an attribute of the scene data in the scene object; a data copying module 803 configured to determine dynamic data in the scene data based on a result of the separation process, and copy the dynamic data for storage.
The specific details of the data processing apparatus have been described in detail in the corresponding data processing method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the data processing device 800 are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
An electronic device 900 according to such an embodiment of the invention is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification.
The storage unit 920 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)921 and/or a cache memory unit 922, and may further include a read only memory unit (ROM) 923.
Storage unit 920 may also include a program/utility 924 having a set (at least one) of program modules 925, such program modules 925 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. As shown, the network adapter 940 communicates with the other modules of the electronic device 900 over the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 10, a program product 1000 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method of data processing, the method comprising:
determining a scene template corresponding to a scene object;
if the scene template meets a first preset condition, separating the scene data according to the attribute of the scene data in the scene object;
and determining dynamic data in the scene data based on the result of the separation processing, and copying and storing the dynamic data.
2. The data processing method according to claim 1, wherein if the scene template satisfies a first preset condition, performing separation processing on the scene data according to an attribute of the scene data in the scene object, includes:
determining a sub-thread in a running state, and extracting a plurality of sub-scene templates in the sub-thread;
inquiring whether other sub-scene templates identical to one of the sub-scene templates exist in the sub-threads;
and if other sub-scene templates identical to the sub-scene template exist, performing separation processing on the scene data according to the attribute of the scene data in the scene object.
3. The data processing method according to claim 1, wherein if the scene template satisfies a first preset condition, performing separation processing on the scene data according to an attribute of the scene data in the scene object, includes:
determining a main thread in a running state, and determining a plurality of sub-threads in the running state in the main thread;
extracting an operation scene template in an operation state in the sub thread, and inquiring whether other operation scene templates same as the operation scene template exist or not;
and if other operation scene templates identical to the operation scene template exist, separating the scene data according to the attributes of the scene data in the scene object.
4. The data processing method of claim 1, wherein the method further comprises:
a child sub-container object and receiving a create request;
and creating the scene object in the child container object according to the creation request.
5. The data processing method of claim 4, wherein after said copying the dynamic data for storage, the method further comprises:
modifying the copied dynamic data according to the scene template to determine target data;
and if the target data meet a second preset condition, filling the target data into the scene template so as to determine a scene interface corresponding to the scene object.
6. The data processing method of claim 5, wherein the method further comprises:
storing the target data in a parent container object associated with the child container object.
7. A data processing method as claimed in claim 1, wherein the scene template comprises a layout and/or a style for defining the scene object.
8. A data processing apparatus, comprising:
the template determining module is configured to determine scene templates corresponding to the scene objects respectively; wherein, one scene object corresponds to one or more scene templates;
the data separation module is configured to separate the scene data according to the attribute of the scene data in the scene object if the scene template meets a first preset condition;
and the data copying module is configured to determine dynamic data in the scene data based on the result of the separation processing, and copy the dynamic data for storage.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data processing method of any one of claims 1 to 7.
10. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data processing method of any one of claims 1-7 via execution of the executable instructions.
CN201910548854.6A 2019-06-24 2019-06-24 Data processing method and device, storage medium and electronic equipment Pending CN112130811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910548854.6A CN112130811A (en) 2019-06-24 2019-06-24 Data processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910548854.6A CN112130811A (en) 2019-06-24 2019-06-24 Data processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112130811A true CN112130811A (en) 2020-12-25

Family

ID=73849989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910548854.6A Pending CN112130811A (en) 2019-06-24 2019-06-24 Data processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112130811A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672387A (en) * 2021-08-11 2021-11-19 上海交通大学 Remote calling graphics rendering method and system based on drawing programming interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672387A (en) * 2021-08-11 2021-11-19 上海交通大学 Remote calling graphics rendering method and system based on drawing programming interface
CN113672387B (en) * 2021-08-11 2023-10-20 上海交通大学 Remote calling graphic rendering method and system based on drawing programming interface

Similar Documents

Publication Publication Date Title
US20180314674A1 (en) Systems and Methods for Contextual Vocabularies and Customer Segmentation
WO2021174928A1 (en) Page pre-rendering method and apparatus, electronic device, and storage medium
US9063772B2 (en) Automated caching and mirroring of immutable data in distributed virtual machines via native interface components
US10419568B2 (en) Manipulation of browser DOM on server
US20120317504A1 (en) Automated user interface object transformation and code generation
US10331423B1 (en) Utilizing cross platform streamable user interfaces to reduce software deployment frequency caused by user interface improvements
US9940396B1 (en) Mining potential user actions from a web page
AU2012271774A1 (en) Automated user interface object transformation and code generation
US20190080017A1 (en) Method, system, and device that invokes a web engine
US9430808B2 (en) Synchronization points for state information
EP2718838A2 (en) Techniques for adapting an interpretive run time application to multiple clients
CN113010170A (en) Page rendering method, device, medium and electronic equipment based on Vue3 component
US20230385363A1 (en) Web site preview generation based on web site type
CN112507259A (en) Webpage loading method and device, electronic equipment and storage medium
CN111078228A (en) Method and device for converting webpage into small program, server and storage medium
US20240095298A1 (en) Systems and methods for rendering interactive web pages
EP3008697B1 (en) Coalescing graphics operations
CN112130811A (en) Data processing method and device, storage medium and electronic equipment
US10169478B2 (en) Optimize data exchange for MVC-based web applications
US9304830B1 (en) Fragment-based multi-threaded data processing
US11016739B2 (en) Reducing memory usage in software applications
CN111026463A (en) Page loading method, device, equipment and storage medium
US20130179896A1 (en) Multi-thread processing of an XML document
Chen et al. MSA: A Novel App Development Framework for Transparent Multiscreen Support on Android Apps
Wei Big Data Intelligent Analysis Based Web Front-end Performance Optimization and Its Application Research

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