+

CN102831073B - Internal memory data processing method and system - Google Patents

Internal memory data processing method and system Download PDF

Info

Publication number
CN102831073B
CN102831073B CN201210293320.1A CN201210293320A CN102831073B CN 102831073 B CN102831073 B CN 102831073B CN 201210293320 A CN201210293320 A CN 201210293320A CN 102831073 B CN102831073 B CN 102831073B
Authority
CN
China
Prior art keywords
data
data object
internal memory
sources
application program
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.)
Expired - Fee Related
Application number
CN201210293320.1A
Other languages
Chinese (zh)
Other versions
CN102831073A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210293320.1A priority Critical patent/CN102831073B/en
Publication of CN102831073A publication Critical patent/CN102831073A/en
Application granted granted Critical
Publication of CN102831073B publication Critical patent/CN102831073B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an internal memory data processing method which comprises the following steps of: after an application program is started and when a first data object in the application program is firstly displayed, creating each datum contained in the first data object in an internal memory, wherein each datum comprises a first kind of data and a second kind of data; when a command of switching to other data objects is received, deleting the first kind of data contained in the first data object, and keeping the second kind of data; and when the first data object is switched to be displayed once again, creating and storing the first kind of data contained in the first data object in the internal memory according to the second kind of data kept in the internal memory, reading each datum and displaying the first data object. Correspondingly, the invention also provides an internal memory data processing system. In the invention, the internal memory data can be efficiently processed, and the internal memory data processing method and system have low data processing complexity, high flexibility and high switching speed.

Description

A kind of internal storage data disposal route and system
Technical field
The present invention relates to internal storage data processing technology field, particularly relate to a kind of internal storage data disposal route, and a kind of internal storage data disposal system.
Background technology
The method switching display different pieces of information object in traditional application program is:
When receiving user and processing the instruction of the first data object, in internal memory, create first group of data that this data object comprises; When receiving user and switching to the instruction of the second data object, delete in internal memory the first group of data created, then create second group of data that the second data object comprises; When user switches to first group of data again, delete the second group of data created in internal memory, in internal memory, again create first group of data simultaneously.
Analyze above-mentioned processing procedure known, traditional internal storage data disposal route dirigibility is lower, and data management complexity is high, if the data of process are more comparatively large, create and delete and will expend the too much time, waits for too long during switching, treatment effeciency is lower.
Summary of the invention
Based on this, the invention provides a kind of internal storage data disposal route and system, the internal storage data of application program can be processed efficiently, data processing complexity is low, dirigibility is high, switch speed is fast.
A kind of internal storage data disposal route, comprises the steps:
After application program is opened, when showing the first data object of described application program first, in internal memory, create each data that described first data object comprises, each data wherein said comprise primary sources and secondary sources;
When receiving the instruction switching to other data objects, deleting the described primary sources that described first data object comprises, retaining described secondary sources;
When again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object.
A kind of internal storage data disposal system, comprising: creation module, removing module and switching display module;
After described creation module is used for application program unlatching, when showing the first data object in described application program first, create each data that described first data object comprises in internal memory, each data wherein said comprise primary sources and secondary sources;
Described removing module is used for when receiving the instruction switching to other data objects, deletes the described primary sources that described first data object comprises, retains described secondary sources;
Described switching display module is used for when again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object.
The data that the first data object shown first comprises, after application program is opened, are classified by above-mentioned internal storage data disposal route and system; When switching other data objects of display, only deleting the wherein class data that the first data object comprises, retaining another kind of data; When again showing the first data object, owing to having stored wherein class data in internal memory, so only need create another kind of data, switch speed is faster, data management complexity is low, data processing dirigibility is higher.
Accompanying drawing explanation
Fig. 1 is internal storage data disposal route of the present invention schematic flow sheet in one embodiment.
Fig. 2 is internal storage data disposal system of the present invention structural representation in one embodiment.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
As shown in Figure 1, be internal storage data disposal route of the present invention schematic flow sheet in a preferred embodiment, comprise the steps:
After step S11, application program are opened, when showing the first data object in described application program first, create each data that described first data object comprises in internal memory, each data wherein said comprise primary sources and secondary sources;
Application program shows the different pages according to the instruction of user after opening and running, each the different data object comprised in this page and application program; Wherein contain each data in each data object, as multiple different pieces of informations such as video, picture, texts; When showing a certain data object, namely each data that this data object comprises are created storage in internal memory, read each data and can show this data object; Wherein, each data described comprise primary sources and secondary sources.
In a preferred embodiment, described primary sources can be the data that committed memory is greater than default classification thresholds; Described secondary sources are the data that committed memory is less than or equal to described classification thresholds
Can setting one according to actual needs for judging the classification thresholds compared, the committed memory size of each data and described classification thresholds being compared, wherein said primary sources are the data that committed memory is larger than classification thresholds, the data that namely committed memory is larger; The committed memory size of each data and described classification thresholds are compared, described secondary sources are the data that committed memory is less than classification thresholds, the data that namely committed memory is less;
Classify according to the committed memory size of each data in the present embodiment, can more effectively management data, improve switch speed; Also can adopt other sorting techniques, as classified according to the form of data, the data committed memories such as general video or audio frequency are comparatively large, and can be categorized as primary sources, the data such as text or picture committed memory is less, can be categorized as secondary sources; Therefore the concrete sorting technique of each data described can sets itself as required.
Step S12, when receiving the instruction switching to other data objects, deleting the described primary sources that described first data object comprises, retaining described secondary sources;
When receiving switching command, namely from when the picture of pre-treatment switches to other pictures, according to the classification results in step S11, delete primary sources, the data that namely committed memory is larger; Secondary sources committed memory is less, does not need to delete; The data comprised when the picture of pre-treatment, without the need to whole deletion, effectively can improve switch speed.
Step S13, when again switch display described first data object time, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object;
When again switching described first data object of display, owing to not deleting secondary sources in step S12, now only need create primary sources in internal memory, without the need to creating all data, hand-off process speed is fast.
In a preferred embodiment, after described application program is opened, also can comprise the steps:
Step a: corresponding mark is added to each data object in described application program, described mark is for storing the storage address of each data object described;
Step b: described in each in the described application program of display during data object, according to the storage address of described identification record corresponding to described data object, each Data import comprised by described data object, in described internal memory, stores and shows described data object after reading each data described in described internal memory;
Owing to containing multiple data object in application program, unique identification can be added to all data objects, the storage address of the data object that each identification record is corresponding; Therefore, when the data object that switching display is different, can find the storage address of data rapidly according to this mark, the data comprised by this data object can be loaded in internal memory rapidly, show this data object in time.
In a preferred embodiment, step S13 can specifically comprise the steps:
Step c: when switching described first data object of display, by the storage address of described identification record corresponding to described first data object, retrieve each data that described first data object comprises;
Steps d: the committed memory of each data described and described classification thresholds are compared, will be greater than each Data import of described classification thresholds in described internal memory, stores and show described first data object after reading each data described in described internal memory;
When again switching described first data object of display, due to when showing the first data object first, the data comprised are classified, when switching to other data objects, according to classification situation, interior exist deletion data up to deleting the larger primary sources of committed memory, and remain the less secondary sources of committed memory; Only primary sources need be created when therefore again showing; According to the storage address of each data of identification record of the first data object, can retrieve according to classification thresholds the primary sources that in each data, committed memory is larger rapidly; By the Data import being greater than classification thresholds that retrieves in internal memory, add the secondary sources stored, described first data object can be shown; Relative to prior art, without the need to again creating all data, switch display speed faster.
The present invention is further illustrated below by a specific embodiment.
Set an application program in the present embodiment, this application program open after in internal memory a newly-built process, two groups of data object A and B are contained in this process, wherein data object A comprises two groups of small data A1 and A2, need the internal memory taking 3M and 7M respectively, data object B also contains two groups of small data B1 and B2, needs the internal memory taking 2M and 8M respectively;
Now need to switch display back and forth between data object A and B, when wherein switching to data object A from data object B, traditional disposal route is two groups of small datas that the data object B created in deletion internal memory comprises, and creates two groups of small datas that data object A comprises simultaneously; When in like manner switching to data object B from data object A, two groups of small datas that the data object A created in deletion internal memory comprises, create two groups of small datas that data object B comprises simultaneously.
Utilize the technical scheme that the present invention proposes, specific as follows to the processing procedure of data object A and data object B in the present embodiment:
If classification thresholds is 5M, classify to each small data comprised in data object A, wherein data A1 belongs to the data that in data object A, committed memory is little, and data A2 belongs to the data that in data object A, committed memory is large;
Classify to each small data comprised in data object B, wherein data B1 belongs to the data that in data object B, committed memory is little, and data B2 belongs to the data that in data object B, committed memory is large.
Suppose that the picture of current display is data object B, namely in internal memory, created above-mentioned two data B1 and B2 that data object B comprises;
When receiving the instruction switching to data object A, first the data created in internal memory are processed; The data B2 belonging to committed memory large in data object B is deleted, then not needing process for belonging to the little data B1 of committed memory in data object B, retaining this B1 data; After deletion, according to switching command, in internal memory, create two groups of small datas that data object A comprises, display after reading;
When receiving the instruction of process data B, first the data created in internal memory are processed; The data A2 belonging to committed memory large in data object A is deleted, not needing to delete for belonging to the little data A1 of committed memory in data object A, retaining this A1 data; After deletion, in internal memory, create the data that data B comprises, be retained in internal memory owing to belonging to the little data B1 of committed memory in data object B, do not needed to re-create, therefore only need create the large data B2 of committed memory;
In like manner, when again receiving the instruction switching to data object A, being retained in internal memory owing to belonging to the little data A1 of committed memory in data object A, not needed to re-create, therefore only need create the large data A2 of committed memory.
Accordingly, as shown in Figure 2, be internal storage data disposal system of the present invention structural representation in a preferred embodiment, comprise: creation module 21, removing module 22 and switching display module 23;
After described creation module 21 is opened for application program, when switching the first data object in the described application program of display first, in internal memory, create each data that described first data object comprises, each data wherein said comprise primary sources and secondary sources;
Application program shows the different pages according to the instruction of user, each the different data object namely comprised in application program after opening and running; Wherein each data object further comprises each data, as different pieces of informations such as video, picture, texts; When showing a certain data object, namely each data that this data object comprises are created storage in internal memory, read each data and can show this data object; Each data wherein said comprise primary sources and secondary sources.
In a preferred embodiment, the described primary sources in described creation module 21 are the data that committed memory is greater than default classification thresholds; Described secondary sources are the data that committed memory is less than or equal to described classification thresholds;
Can setting one according to actual needs for judging the classification thresholds compared, the committed memory size of each data and described classification thresholds being compared, described primary sources are the data that committed memory is larger than classification thresholds, the data that namely committed memory is larger; The committed memory size of each data and described classification thresholds are compared, described secondary sources are the data that committed memory is less than classification thresholds, the data that namely committed memory is less;
Classify according to the committed memory size of each data in the present embodiment, can more effectively management data, improve switch speed; Also can adopt other mode classifications, as classified according to the form of data, the data committed memories such as general video or audio frequency are comparatively large, and can be categorized as primary sources, the data such as text or picture committed memory is less, can be categorized as secondary sources; Therefore the concrete mode classification of each data described in this module can sets itself as required.
Described removing module 22, for when receiving the instruction switching to other data objects, being deleted the described primary sources that described first data object comprises, being retained described secondary sources;
When receiving switching command, namely from when the picture of pre-treatment switches to other pictures, according to the classification results in sort module 21, delete primary sources, the data that namely committed memory is larger; Secondary sources committed memory is less, does not need to delete; The data comprised when the picture of pre-treatment, without the need to whole deletion, effectively can improve switch speed.
Described switching display module 23 is for when again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object.
When again switching described first data object of display, owing to not deleting secondary sources in removing module 22, now only need create primary sources in internal memory, without the need to creating all data, hand-off process speed is fast.
In a preferred embodiment, interpolation module and the first display module can be also connected with before described creation module 21;
Described interpolation module adds corresponding mark to each data object in described application program after being used for application program unlatching, and described mark is for storing the storage address of each data object described;
Described first display module is used for showing in described application program described in each during data object, according to the storage address of described identification record corresponding to described data object, each Data import comprised by described data object, in described internal memory, stores and shows corresponding described data object after reading each data described in described internal memory;
Owing to containing multiple data object in application program, unique identification can be added to all data objects, the storage address of the data object that each identification record is corresponding; Therefore, when the data object that switching display is different, can find the storage address of data rapidly according to this mark, the data comprised by this data object are loaded in internal memory rapidly, show this data object in time.
In a preferred embodiment, described switching display module 23 also can comprise retrieval module and the second display module;
Described retrieval module is used for, from second time switches described first data object of display, by the storage address of described identification record corresponding to described first data object, retrieving each data that described first data object comprises;
Described second display module is used for the committed memory of each data described and described classification thresholds to compare, to each Data import of described classification thresholds be greater than in described internal memory, store in described internal memory and show described first data object after reading each data described.
Switching described first data object of display from second, due to when showing the first data object first, the data comprised are classified, when switching to other data objects, according to classification situation, interior exist deletion data up to deleting the larger primary sources of committed memory, and remain the less secondary sources of committed memory; Only primary sources need be created when therefore again showing; According to the storage address of each data of identification record of the first data object, can retrieve according to classification thresholds the primary sources that in each data, committed memory is larger rapidly; By the Data import being greater than classification thresholds that retrieves in internal memory, add the secondary sources stored, described first data object can be shown; Relative to prior art, without the need to again creating all data, switch display speed faster.
The data that the first data object shown first comprises, after application program is opened, are classified by above-mentioned internal storage data disposal route and system; When switching other data objects of display, only deleting the wherein class data that the first data object comprises, retaining another kind of data; When again showing the first data object, owing to having stored wherein class data in internal memory, so only need create another kind of data, switch speed is faster, data management complexity is low, data processing dirigibility is higher.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (6)

1. an internal storage data disposal route, is characterized in that, comprises the steps:
After application program is opened, when showing the first data object of described application program first, in internal memory, create each data that described first data object comprises, each data wherein said comprise primary sources and secondary sources; Wherein, described primary sources are the data that committed memory is greater than default classification thresholds; Described secondary sources are the data that committed memory is less than or equal to described classification thresholds;
When receiving the instruction switching to other data objects, deleting the described primary sources that described first data object comprises, retaining described secondary sources;
When again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object.
2. internal storage data disposal route according to claim 1, is characterized in that, after described application program is opened, also comprises the steps:
Add corresponding mark to each data object in described application program, described mark is for storing the storage address of each data object described;
Described in each in the described application program of display during data object, according to the storage address of described identification record corresponding to described data object, each Data import comprised by described data object, in described internal memory, stores and shows corresponding described data object after reading each data described in described internal memory.
3. internal storage data disposal route according to claim 2, it is characterized in that, described when again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, the step showing described first data object after reading described primary sources and secondary sources specifically comprises:
When again switching described first data object of display, by the storage address of described identification record corresponding to described first data object, retrieve each data that described first data object comprises;
The committed memory of each data described and described classification thresholds are compared, will each Data import of described classification thresholds be greater than in described internal memory, store in described internal memory and show described first data object after reading each data described.
4. an internal storage data disposal system, is characterized in that, comprising: creation module, removing module and switching display module;
After described creation module is used for application program unlatching, when showing the first data object in described application program first, create each data that described first data object comprises in internal memory, each data wherein said comprise primary sources and secondary sources; Wherein, described primary sources are the data that committed memory is greater than default classification thresholds; Described secondary sources are the data that committed memory is less than or equal to described classification thresholds;
Described removing module is used for when receiving the instruction switching to other data objects, deletes the described primary sources that described first data object comprises, retains described secondary sources;
Described switching display module is used for when again switching described first data object of display, according to the described secondary sources retained in described internal memory, create in described internal memory and store the primary sources that described first data object comprises, after reading described primary sources and secondary sources, showing described first data object.
5. internal storage data disposal system according to claim 4, is characterized in that, is also connected with and adds module and the first display module before described creation module;
Described interpolation module adds corresponding mark to each data object in described application program after being used for application program unlatching, and described mark is for storing the storage address of each data object described;
Described first display module is used for showing in described application program described in each during data object, according to the storage address of described identification record corresponding to described data object, each Data import comprised by described data object, in described internal memory, stores and shows corresponding described data object after reading each data described in described internal memory.
6. internal storage data disposal system according to claim 5, is characterized in that, described switching display module comprises retrieval module and the second display module;
Described retrieval module is used for, from second time switches described first data object of display, by the storage address of described identification record corresponding to described first data object, retrieving each data that described first data object comprises;
Described second display module is used for the committed memory of each data described and described classification thresholds to compare, to each Data import of described classification thresholds be greater than in described internal memory, store in described internal memory and show described first data object after reading each data described.
CN201210293320.1A 2012-08-17 2012-08-17 Internal memory data processing method and system Expired - Fee Related CN102831073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210293320.1A CN102831073B (en) 2012-08-17 2012-08-17 Internal memory data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210293320.1A CN102831073B (en) 2012-08-17 2012-08-17 Internal memory data processing method and system

Publications (2)

Publication Number Publication Date
CN102831073A CN102831073A (en) 2012-12-19
CN102831073B true CN102831073B (en) 2015-06-03

Family

ID=47334220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210293320.1A Expired - Fee Related CN102831073B (en) 2012-08-17 2012-08-17 Internal memory data processing method and system

Country Status (1)

Country Link
CN (1) CN102831073B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735359B (en) * 2015-04-09 2018-01-16 广东欧珀移动通信有限公司 The camera operation method and device of a kind of mobile terminal
CN106897141A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The processing method and processing device of information
CN109992522A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Application processing method and apparatus, electronic device, computer-readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493821A (en) * 2008-01-25 2009-07-29 中兴通讯股份有限公司 Data caching method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101612780B1 (en) * 2009-11-13 2016-04-18 삼성전자주식회사 Computing system and method for controling memory of computing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493821A (en) * 2008-01-25 2009-07-29 中兴通讯股份有限公司 Data caching method and device

Also Published As

Publication number Publication date
CN102831073A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
JP6050503B2 (en) Mail indexing and retrieval using a hierarchical cache
CN107948730B (en) Method, device and equipment for generating video based on picture and storage medium
CN109726177A (en) A kind of mass file subregion indexing means based on HBase
CN108255915B (en) File management method and device and machine-readable storage medium
CN110674297B (en) Public opinion text classification model construction method, public opinion text classification device and public opinion text classification equipment
CN106708912B (en) Junk file identification and management method, identification device, management device and terminal
CN107360476B (en) Video abstraction generating method and device
CN110909123A (en) Data extraction method and device, terminal equipment and storage medium
CN112732191B (en) Method, system, device and medium for merging tree merging data based on log structure
CN104599692A (en) Recording method and device and recording content searching method and device
CN104778222A (en) Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN102831073B (en) Internal memory data processing method and system
CN104778271A (en) Video data caching method and device
CN110826342A (en) Method, device, computer storage medium and terminal for realizing model management
EP3616092A1 (en) Media sharing based on identified physical objects
CN109255214B (en) Authority configuration method and device
CN106708713A (en) Method and device for writing in journal file
CN107301203B (en) Mass data comparison method and system
CN105653617B (en) Method and system for rapidly displaying files by multimedia file manager
CN117369731A (en) Data reduction processing method, device, equipment and medium
CN106126555A (en) A kind of file management method and file system
CN106775586A (en) Data reordering method and device
KR102221684B1 (en) Multiclass classification apparatus, method thereof and computer readable medium having computer program recorded therefor
CN105205069B (en) Cache opening method and device based on paging file
CN105653912B (en) A kind of method and device for identifying batch registration behavior

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee after: VTRON GROUP Co.,Ltd.

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: VTRON TECHNOLOGIES Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150603

Termination date: 20210817

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载