CN108595262B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN108595262B
CN108595262B CN201810272410.XA CN201810272410A CN108595262B CN 108595262 B CN108595262 B CN 108595262B CN 201810272410 A CN201810272410 A CN 201810272410A CN 108595262 B CN108595262 B CN 108595262B
Authority
CN
China
Prior art keywords
display data
data
display
identifier
screen
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
CN201810272410.XA
Other languages
Chinese (zh)
Other versions
CN108595262A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810272410.XA priority Critical patent/CN108595262B/en
Publication of CN108595262A publication Critical patent/CN108595262A/en
Application granted granted Critical
Publication of CN108595262B publication Critical patent/CN108595262B/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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Abstract

The embodiment of the invention provides a data processing method and device. The system can determine whether the display data stored in the memory is displayed on the screen in real time, if the display data is not displayed on the screen, whether a file identifier corresponding to the data identifier of the display data exists is searched in the corresponding relation between the data identifier of the stored display data and the file identifier of the script file, if so, the script file actively unbinds the script file and the display data after waiting and deletes the display data from the memory without waiting, and the script file corresponding to the file identifier can be directly deleted, so that the script file is not unbound to the display control, and the display data can be deleted from the memory. Therefore, the invention can delete the display data which is not displayed on the screen from the memory in time, and avoid the display data which is not displayed on the screen from remaining in the memory for a long time, thereby improving the utilization rate of the memory.

Description

Data processing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method and apparatus.
Background
In the existing mobile application, the dynamic solution is often implemented based on a display control of a system that dynamically issues a third-party script file and bridges the third-party script file to a terminal.
For example, the system acquires a third-party script file and stores the third-party script file in a memory, then extracts data in the third-party script file, generates display data for displaying on a screen according to the data, and then stores the display data in the memory.
After the display data leaves the screen, the display data is not required to be displayed on the screen again, and because the space of the memory of the system is limited, the display data is required to be deleted from the memory after the display data leaves the screen.
In the prior art, a system detects whether display data stored in a memory is displayed on a screen, if the display data is not displayed on the screen, the display data needs to be deleted from the memory, however, at this time, it is also necessary to determine whether a third-party script file is bound to the display data, if the third-party script file is bound, the display data cannot be deleted from the memory, and the display data can only be deleted from the memory after the third-party script file is unbound to the display data.
However, the inventor finds that the system often detects whether the display data stored in the memory is displayed on the screen in real time, and the third-party script file often periodically unbinds the display data from the display data not displayed on the screen, and the period is long, so that the display data stored in the memory needs a long time to be deleted from the memory after leaving from the screen, that is, the display data leaving from the screen is stored in the memory for a long time, so that the space of the memory is occupied, and the utilization rate of the memory is low.
Disclosure of Invention
To solve the above technical problem, embodiments of the present invention show a data processing method and apparatus.
In a first aspect, an embodiment of the present invention shows a data processing method, where the method includes:
determining whether display data already stored in a memory is displayed on a screen;
if the display data is not displayed on the screen, searching whether a file identifier corresponding to the data identifier of the display data exists in the corresponding relation between the stored data identifier of the display data and the file identifier of the script file;
if the file identification corresponding to the data identification of the display data exists, deleting the script file corresponding to the file identification;
and deleting the display data from the memory.
In an alternative implementation, the determining whether the display data stored in the memory is displayed on the screen includes:
acquiring a corresponding relation between a data identifier of stored display data and display state information;
searching display state information corresponding to the data identification of the display data in the corresponding relation;
determining that the display data is not displayed on the screen if the display status information is first display status information;
and if the display state information is second display state information, determining that the display data is displayed on the screen.
In an optional implementation, the method further includes:
if the file identification corresponding to the data identification of the display data exists, determining whether the display data is displayed on the screen;
and if the display data are displayed on the screen, executing the step of deleting the script file corresponding to the file identification.
In an optional implementation manner, after the deleting the display data from the memory, the method further includes:
determining whether a display control for controlling the display of the display data on the screen is stored in the memory;
and if the display control is stored in the memory, deleting the display control from the memory.
In an optional implementation, the method further includes:
and if the file identification corresponding to the data identification of the display data exists, deleting the corresponding table entry comprising the data identification and the file identification in the corresponding relation.
In a second aspect, an embodiment of the present invention shows a data processing apparatus, including:
a first determination module for determining whether display data stored in a memory is displayed on a screen;
the searching module is used for searching whether a file identifier corresponding to the data identifier of the display data exists in the corresponding relation between the stored data identifier of the display data and the file identifier of the script file if the display data is not displayed on the screen;
the first deleting module is used for deleting the script file corresponding to the file identifier if the file identifier corresponding to the data identifier of the display data exists;
and the second deleting module is used for deleting the display data from the memory.
In an optional implementation manner, the first determining module includes:
the acquisition unit is used for acquiring the corresponding relation between the data identifier of the stored display data and the display state information;
the searching unit is used for searching the display state information corresponding to the data identification of the display data in the corresponding relation;
a first determination unit configured to determine that the display data is not displayed on the screen if the display state information is first display state information;
a second determining unit configured to determine that the display data is displayed on the screen if the display state information is second display state information.
In an optional implementation, the apparatus further comprises:
a second determining module, configured to determine whether the display data is displayed on the screen if a file identifier corresponding to a data identifier of the display data exists;
the first deletion module is further configured to: and if the display data are displayed on the screen, deleting the script file corresponding to the file identifier.
In an optional implementation, the apparatus further comprises:
a third determining module, configured to determine whether a display control used for controlling the display of the display data on the screen is stored in the memory;
and the third deleting module is used for deleting the display control from the memory if the display control is stored in the memory.
In an optional implementation, the apparatus further comprises:
and the fourth deleting module is used for deleting the corresponding table entry comprising the data identifier and the file identifier in the corresponding relation if the file identifier corresponding to the data identifier of the display data exists.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the present invention, the system may determine in real time whether the display data stored in the memory is displayed on the screen, if the display data is not displayed on the screen, then in the correspondence between the data identifier of the stored display data and the file identifier of the script file, find whether a file identifier corresponding to the data identifier of the display data exists, and if a file identifier corresponding to the data identifier of the display data exists, it is not necessary to wait until the script file actively unbinds the script file from the display data and then delete the display data from the memory, but may directly delete the script file corresponding to the file identifier, so that the display control is no longer bound with the script file, and thus the display data may be deleted from the memory. Therefore, compared with the prior art, the embodiment of the invention can delete the display data which is not displayed on the screen from the memory in time, and prevent the display data which is not displayed on the screen from remaining in the memory for a long time, thereby improving the utilization rate of the memory.
Drawings
FIG. 1 is a flow chart of the steps of one data processing method embodiment of the present invention;
fig. 2 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, which may specifically include the following steps:
in step S101, it is determined whether display data already stored in the memory is displayed on the screen;
in the embodiment of the present invention, after generating display data for displaying on a screen according to data in a script file, the display data needs to be stored in a memory, and then, display state information indicating whether the display data is displayed on the screen needs to be set for the display data stored in the memory.
For example, before a certain display data is stored in the memory and displayed on the screen, the display state information of the display data needs to be set, for example, the display state information of the display data is set as the first display state information, at this time, the first display state information is used to indicate that the display data is not displayed on the screen, then the data identifier of the display data and the first display state information are combined into a corresponding table entry and stored in the corresponding relationship between the stored data identifier of the display data and the display state information of the display data.
Then, after the display data starts to be displayed on the screen, the display state information corresponding to the data identifier of the display data needs to be updated in the corresponding entry in the corresponding relationship, for example, the first display state information in the corresponding entry is modified into second display state information, and the second display state information is used to indicate that the display data is displayed on the screen.
And after the display data leaves from the screen, it is also necessary to update the display state information corresponding to the data identifier of the display data in the corresponding table entry in the corresponding relationship, for example, modify the second display state information in the corresponding table entry into the first display state information again.
In the embodiment of the present invention, the data identifiers of different display data are different, and the data identifier of the display data may be a storage address of the display data in the memory or a name of the display data, and the like.
The display state information may be a preset identifier, for example, a first preset identifier is used to indicate that the display data is not displayed on the screen, and a second preset identifier is used to indicate that the display data is displayed on the screen. The first preset identifier may be "0", the second preset identifier may be "1", and so on.
Alternatively, the display state information may be display coordinates on the screen, for example, the display coordinates of the display data are usually defaulted to (0, 0) when the display data are not displayed on the screen, the display coordinates of the display data are (a, B) when the display data are displayed on the screen, and at least one of a and B is larger than 0.
Therefore, in this step, a correspondence between the data identifier of the stored display data and the display status information may be obtained, and then the display status information corresponding to the data identifier of the display data is searched for in the correspondence, and if the display status information is the first display status information, it is determined that the display data is not displayed on the screen, and if the display status information is the second display status information, it is determined that the display data is displayed on the screen.
For example, when the display state information is a preset identifier, if the display state information corresponding to the data identification of the display data is a first preset identifier, it is determined that the display data is not displayed on the screen, and if the display state information corresponding to the data identification of the display data is a second preset identifier, it is determined that the display data is displayed on the screen.
Or, when the display state information is a display coordinate on the screen, if both values in the display coordinate are 0, that is, if the display coordinate is (0, 0), determining that the display data is not displayed on the screen, and if at least one of the two values in the display coordinate is greater than 0, determining that the display data is displayed on the screen.
If the display data is not displayed on the screen, in step S102, in the correspondence between the data identifier of the stored display data and the file identifier of the script file, searching whether a file identifier corresponding to the data identifier of the display data exists;
when the system of the terminal needs to delete any display data stored in the memory, the display data can be deleted from the memory only under the condition that the display data is not bound with any script file.
Therefore, in the embodiment of the present invention, in a case where the display data is not displayed on the screen, if the display data is bound to at least one script file, the display data cannot be deleted from the memory, and if the display data is not bound to any script file, the display data cannot be deleted from the memory.
After the display data for displaying on the screen is generated according to the data in the script file, in order to update and configure the display data, the display data and the script file often need to be bound, for example, a data identifier of the display data and a file identifier of the script file form a corresponding entry and are stored in a corresponding relationship between the stored data identifier of the display data and a file identifier of the script file, and then, when the script file and the display data need to be unbound, the corresponding entry is deleted from the corresponding relationship.
Therefore, in this step, if the display data is not displayed on the screen, it is necessary to find whether a file identifier corresponding to the data identifier of the display data exists in the correspondence between the data identifier of the stored display data and the file identifier of the script file, so as to determine whether the display data can be deleted from the memory, and further determine whether the display data can be deleted from the memory.
In the embodiment of the present invention, the file identifiers of different script files are different, and the file identifier of a script file may be a storage address of the script file in the memory or a name of the script file, and the like.
Wherein if the display data is displayed on the screen, the process is ended, or returns to step S101.
If a file identifier corresponding to the data identifier of the display data exists, in step S103, deleting the script file corresponding to the file identifier;
if the display data is required to be deleted from the memory, the display data and the script file are firstly required to be unbound, and then the display data can be deleted from the memory.
In order to be able to unbind the display data from the script file, the script file corresponding to the file identifier may be directly deleted. Further, the script file bound to the display data does not exist any more, and thus step S104 can be performed.
In another embodiment of the present invention, after deleting the script file corresponding to the file identifier, since the corresponding relationship further includes the corresponding entry of the data identifier and the file identifier, and the corresponding entry also occupies a part of the memory, in order to improve the utilization rate of the memory, the corresponding entry including the data identifier and the file identifier also needs to be deleted in the corresponding relationship.
In still another embodiment of the present invention, if there is no file identifier corresponding to the data identifier of the display data, it is determined that the display data is not bound to any script file, so that step S104 may be directly performed.
In step S104, the display data is deleted from the memory.
In the embodiment of the present invention, the system may determine in real time whether the display data stored in the memory is displayed on the screen, if the display data is not displayed on the screen, then in the correspondence between the data identifier of the stored display data and the file identifier of the script file, find whether a file identifier corresponding to the data identifier of the display data exists, and if a file identifier corresponding to the data identifier of the display data exists, it is not necessary to wait until the script file actively unbinds the script file from the display data and then delete the display data from the memory, but may directly delete the script file corresponding to the file identifier, so that the display control is no longer bound with the script file, and thus the display data may be deleted from the memory. Therefore, compared with the prior art, the embodiment of the invention can delete the display data which is not displayed on the screen from the memory in time, and prevent the display data which is not displayed on the screen from remaining in the memory for a long time, thereby improving the utilization rate of the memory.
In another embodiment of the present invention, after the display data for displaying on the screen is generated according to the data in the script file and stored in the memory, if the display data needs to be displayed on the screen, a display control for controlling the display of the display data on the screen needs to be generated, the display control is stored in the memory and bound to the display data, and then the display control is used to display the display data on the screen.
Specifically, after the display data is deleted from the memory, it may be determined whether a display control for controlling the display of the display data on the screen is stored in the memory; and if the display control is stored in the memory, deleting the display control from the memory.
In another embodiment of the present invention, after the display data for displaying on the screen is generated according to the data in the script file and the data identifier of the display data and the file identifier of the script file are combined into the corresponding entry and stored in the corresponding relationship between the stored data identifier of the display data and the file identifier of the script file, the system may not display the display data on the screen immediately, but need to display the display data after a period of time.
For example, after the data identifier of the display data and the file identifier of the script file form a corresponding entry and are stored in the corresponding relationship between the stored data identifier of the display data and the file identifier of the script file, a display control needs to be generated, the display control is bound with the display data, and then the display control is used to display the display data on the screen. The process of generating the display control and the process of binding the display control and the display data both need to occupy a period of time.
However, the system determines in real time whether each display data stored in the memory is displayed on the screen.
Therefore, after the data identifier of the display data and the file identifier of the script file form a corresponding entry and are stored in the corresponding relationship between the stored data identifier of the display data and the file identifier of the script file, if the display data is not yet displayed on the screen, the system determines whether each piece of display data stored in the memory is displayed on the screen, it is often determined that the display data is not displayed on the screen, and a file identifier corresponding to the data identifier of the display data exists in the corresponding relationship between the stored data identifier of the display data and the file identifier of the script file, and then step S103 and step S104 are executed to delete the display data from the memory.
However, in fact, the system has not yet reached to display the display data on the screen, this time, the deletion of the display data from the memory belongs to a false deletion event, then when the display data needs to be displayed on the screen, the script file needs to be re-acquired, the display data for displaying on the screen is generated according to the data in the script file, the data identifier of the display data and the file identifier of the script file form a corresponding entry again, the entry is stored in the corresponding relationship between the stored data identifier of the display data and the file identifier of the script file, the display data can be displayed on the screen, and then after the display data leaves the screen, the display data is deleted from the memory again according to the flow from step S101 to step S104.
In this case, the false deletion event affects the display efficiency of the display data and consumes system resources.
Therefore, in order to avoid affecting the display efficiency of the display data and avoiding consuming system resources, in another embodiment of the present invention, if there is a file identifier corresponding to the data identifier of the display data in the correspondence between the data identifier of the stored display data and the file identifier of the script file, it is required to determine whether the display data is displayed on the screen, and if the display data is displayed on the screen, step S103 is executed, otherwise, the process is ended, or the process returns to step S101.
When the system displays a piece of data on a screen, the data identifier of the data is stored in the preset data identifier list, and when the data is deleted from the memory, the data identifier of the data is deleted from the preset data identifier list.
Therefore, when determining whether the display data is displayed on the screen, whether the data identifier of the display data exists may be searched in a preset data identifier list, if the data identifier of the display data exists, it is determined that the display data is displayed on the screen, and if the data identifier of the display data does not exist, it is determined that the display data is not displayed on the screen.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a data processing apparatus according to an embodiment of the present invention is shown, and the apparatus may specifically include the following modules:
a first determination module 11 for determining whether display data stored in the memory is displayed on the screen;
a searching module 12, configured to search, if the display data is not displayed on the screen, whether a file identifier corresponding to the data identifier of the display data exists in a correspondence between a data identifier of stored display data and a file identifier of a script file;
a first deleting module 13, configured to delete the script file corresponding to the file identifier if a file identifier corresponding to the data identifier of the display data exists;
a second deleting module 14, configured to delete the display data from the memory.
In an optional implementation manner, the first determining module 11 includes:
the acquisition unit is used for acquiring the corresponding relation between the data identifier of the stored display data and the display state information;
the searching unit is used for searching the display state information corresponding to the data identification of the display data in the corresponding relation;
a first determination unit configured to determine that the display data is not displayed on the screen if the display state information is first display state information;
a second determining unit configured to determine that the display data is displayed on the screen if the display state information is second display state information.
In an optional implementation, the apparatus further comprises:
a second determining module, configured to determine whether the display data is displayed on the screen if a file identifier corresponding to a data identifier of the display data exists;
the first deleting module 13 is further configured to: and if the display data are displayed on the screen, deleting the script file corresponding to the file identifier.
In an optional implementation, the apparatus further comprises:
a third determining module, configured to determine whether a display control used for controlling the display of the display data on the screen is stored in the memory;
and the third deleting module is used for deleting the display control from the memory if the display control is stored in the memory.
In an optional implementation, the apparatus further comprises:
and the fourth deleting module is used for deleting the corresponding table entry comprising the data identifier and the file identifier in the corresponding relation if the file identifier corresponding to the data identifier of the display data exists.
In the embodiment of the present invention, the system may determine in real time whether the display data stored in the memory is displayed on the screen, if the display data is not displayed on the screen, then in the correspondence between the data identifier of the stored display data and the file identifier of the script file, find whether a file identifier corresponding to the data identifier of the display data exists, and if a file identifier corresponding to the data identifier of the display data exists, it is not necessary to wait until the script file actively unbinds the script file from the display data and then delete the display data from the memory, but may directly delete the script file corresponding to the file identifier, so that the display control is no longer bound with the script file, and thus the display data may be deleted from the memory. Therefore, compared with the prior art, the embodiment of the invention can delete the display data which is not displayed on the screen from the memory in time, and prevent the display data which is not displayed on the screen from remaining in the memory for a long time, thereby improving the utilization rate of the memory.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data processing method and apparatus provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data processing, the method comprising:
determining whether display data already stored in a memory is displayed on a screen;
if the display data is not displayed on the screen, searching whether a file identifier corresponding to the data identifier of the display data exists in the corresponding relation between the stored data identifier of the display data and the file identifier of the script file;
if the file identification corresponding to the data identification of the display data exists, deleting the script file corresponding to the file identification so as to remove the binding relationship between the display data and the script file;
and deleting the display data which is not bound with the script file from the memory.
2. The method of claim 1, wherein determining whether display data stored in the memory is displayed on the screen comprises:
acquiring a corresponding relation between a data identifier of stored display data and display state information;
searching display state information corresponding to the data identification of the display data in the corresponding relation;
determining that the display data is not displayed on the screen if the display status information is first display status information;
and if the display state information is second display state information, determining that the display data is displayed on the screen.
3. The method of claim 1, further comprising:
if the file identification corresponding to the data identification of the display data exists, determining whether the display data is displayed on the screen;
and if the display data are displayed on the screen, executing the step of deleting the script file corresponding to the file identification.
4. The method of claim 1, further comprising, after said deleting said display data from said memory:
determining whether a display control for controlling the display of the display data on the screen is stored in the memory;
and if the display control is stored in the memory, deleting the display control from the memory.
5. The method of claim 1, further comprising:
and if the file identification corresponding to the data identification of the display data exists, deleting the corresponding table entry comprising the data identification and the file identification in the corresponding relation.
6. A data processing apparatus, characterized in that the apparatus comprises:
a first determination module for determining whether display data stored in a memory is displayed on a screen;
the searching module is used for searching whether a file identifier corresponding to the data identifier of the display data exists in the corresponding relation between the stored data identifier of the display data and the file identifier of the script file if the display data is not displayed on the screen;
the first deleting module is used for deleting the script file corresponding to the file identifier if the file identifier corresponding to the data identifier of the display data exists so as to remove the binding relationship between the display data and the script file;
and the second deleting module is used for deleting the display data which is not bound with the script file from the memory.
7. The apparatus of claim 6, wherein the first determining module comprises:
the acquisition unit is used for acquiring the corresponding relation between the data identifier of the stored display data and the display state information;
the searching unit is used for searching the display state information corresponding to the data identification of the display data in the corresponding relation;
a first determination unit configured to determine that the display data is not displayed on the screen if the display state information is first display state information;
a second determining unit configured to determine that the display data is displayed on the screen if the display state information is second display state information.
8. The apparatus of claim 6, further comprising:
a second determining module, configured to determine whether the display data is displayed on the screen if a file identifier corresponding to a data identifier of the display data exists;
the first deletion module is further configured to: and if the display data are displayed on the screen, deleting the script file corresponding to the file identifier.
9. The apparatus of claim 6, further comprising:
a third determining module, configured to determine whether a display control used for controlling the display of the display data on the screen is stored in the memory;
and the third deleting module is used for deleting the display control from the memory if the display control is stored in the memory.
10. The apparatus of claim 6, further comprising:
and the fourth deleting module is used for deleting the corresponding table entry comprising the data identifier and the file identifier in the corresponding relation if the file identifier corresponding to the data identifier of the display data exists.
CN201810272410.XA 2018-03-29 2018-03-29 Data processing method and device Active CN108595262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810272410.XA CN108595262B (en) 2018-03-29 2018-03-29 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810272410.XA CN108595262B (en) 2018-03-29 2018-03-29 Data processing method and device

Publications (2)

Publication Number Publication Date
CN108595262A CN108595262A (en) 2018-09-28
CN108595262B true CN108595262B (en) 2021-06-22

Family

ID=63623870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810272410.XA Active CN108595262B (en) 2018-03-29 2018-03-29 Data processing method and device

Country Status (1)

Country Link
CN (1) CN108595262B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360095B (en) * 2021-06-04 2023-02-17 重庆紫光华山智安科技有限公司 Hard disk data management method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071374A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Window system and its interface editing method
AU2007203609A1 (en) * 2006-08-07 2008-02-21 Pc Tools Technology Pty Limited A method and system for validating site data
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
AU2014100636B4 (en) * 2011-12-07 2014-09-11 Adinfinity Holdings Pty Ltd Systems and methods for processing web page data
CN104111843A (en) * 2013-04-17 2014-10-22 苏州墨提斯信息科技有限公司 Sandbox based script updating method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639779B (en) * 2009-08-18 2012-07-18 腾讯科技(深圳)有限公司 Resource release method and device
CN104252350B (en) * 2013-06-28 2018-05-11 北京新媒传信科技有限公司 A kind of method and apparatus of picture in loading list box
CN105095200B (en) * 2014-04-16 2018-06-29 北大方正集团有限公司 The method and apparatus that picture is shown in a manner of waterfall stream
CN105630267B (en) * 2014-10-29 2019-04-12 阿里巴巴集团控股有限公司 View interface method for managing resource and device
US9747250B2 (en) * 2015-03-25 2017-08-29 International Business Machines Corporation Effective memory management for host objects in a runtime environment with embedded garbage-collected based dynamic language
CN105630411B (en) * 2015-12-18 2019-09-27 小米科技有限责任公司 EMS memory management process and device
CN107357650B (en) * 2017-06-06 2020-12-15 武汉斗鱼网络科技有限公司 Automatic memory release method and system based on picture resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007203609A1 (en) * 2006-08-07 2008-02-21 Pc Tools Technology Pty Limited A method and system for validating site data
CN101071374A (en) * 2007-03-30 2007-11-14 腾讯科技(深圳)有限公司 Window system and its interface editing method
CN101872305A (en) * 2010-06-08 2010-10-27 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
AU2014100636B4 (en) * 2011-12-07 2014-09-11 Adinfinity Holdings Pty Ltd Systems and methods for processing web page data
CN104111843A (en) * 2013-04-17 2014-10-22 苏州墨提斯信息科技有限公司 Sandbox based script updating method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
数据岛在HTML的嵌入显示;王默玉;《电脑与信息技术》;20051231;第30-32页 *

Also Published As

Publication number Publication date
CN108595262A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
US9336054B2 (en) Method and apparatus for configuring resource
US11086638B2 (en) Method and apparatus for loading application
US20160232374A1 (en) Permission control method and apparatus
CN105843819B (en) Data export method and device
CN109361948B (en) Interface management method, intelligent terminal and readable storage medium
CN103761036A (en) Method and device for running application
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN106897162B (en) Communication mode selection method of component in application, communication system and mobile terminal
GB2507037A (en) Software application discovery using variable frequency file system scanning
CN104601535A (en) Video processing method and system
CN108595262B (en) Data processing method and device
CN108958831B (en) Viewgroup dynamic layout method and device and electronic equipment
CN110609710B (en) Android system starting speed control method, intelligent device and storage medium
CN109271193B (en) Data processing method, device, equipment and storage medium
CN103488508A (en) Browser working method, browser and terminal equipment
CN112148395A (en) Page display method, device, equipment and storage medium
CN106470351B (en) Page display method and page display device
CN105975306A (en) Application program starting management method and application program starting management apparatus for electronic device
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
CN109472540B (en) Service processing method and device
CN104753986A (en) Terminal, server and e-book synchronization method
CN106203087B (en) Injection protection method, system, terminal and storage medium
CN103853791A (en) Implementation method and device for quick file retrieving

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