CN1912839A - Making of resource group and method of saving storage space in application program - Google Patents

Making of resource group and method of saving storage space in application program Download PDF

Info

Publication number
CN1912839A
CN1912839A CN 200510041421 CN200510041421A CN1912839A CN 1912839 A CN1912839 A CN 1912839A CN 200510041421 CN200510041421 CN 200510041421 CN 200510041421 A CN200510041421 A CN 200510041421A CN 1912839 A CN1912839 A CN 1912839A
Authority
CN
China
Prior art keywords
resource
group
stage
cover
cover group
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
CN 200510041421
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.)
LG Electronics Kunshan Computer Co Ltd
Original Assignee
LG Electronics Kunshan Computer 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 LG Electronics Kunshan Computer Co Ltd filed Critical LG Electronics Kunshan Computer Co Ltd
Priority to CN 200510041421 priority Critical patent/CN1912839A/en
Publication of CN1912839A publication Critical patent/CN1912839A/en
Pending legal-status Critical Current

Links

Images

Abstract

A method for preparing resource set includes forming resource master set and merging said resource to be a resource stage, only centralizing up resource not existed in master set in specific purpose resource to form subset of resource. The method for saving storage space in application program supporting multiple resource set includes eliminating repeat of common part in multiple resource set and allowing to use resource set in embedded environment even existing with some problems.

Description

Resource cover group make with application program in the method for conserve storage
Technical field
The invention relates in the application program of making and support a plurality of resource cover groups of resource cover group the method for conserve storage.More particularly, the invention relates in utilizing the application program of a plurality of resources, owing to supporting reasons such as multi-lingual, in the application program of using a plurality of resource cover groups, can effectively improve the storage space service efficiency, thereby can effectively improve the method for the storage space of resource.
Background technology
Window can be divided into resource part and operation part mostly with application program.All resources that application program is used are comprising all data of using from dialog box to application programs such as various character strings, bitmap and general datas.
In the process that these resources are stored, use for convenience and improve data processing efficiency, take the mode that all resources are handled as the form of a packet.Employed all resources of the resource part of packet or original file and execute file are generically and collectively referred to as a resource cover group.In order to support or carry out skin and change that the application program with a plurality of cover groups is made in a large number multi-lingual.These application resources part and actuating code part are separated fully, only by changing resource part, support multi-lingually, carry out the skin replacing and revise other resource etc., thereby improved the degree of freedom of application program greatly.This process as shown in Figure 1.
But, in this common resource change structure, exist a lot of shortcomings.Wherein, Zui Da shortcoming is all the time all resource packings to be managed for configuration.If resource cover group is little, then there is not any big problem, still, use in the application program of huge resource, just this problem can not look down upon.In order to address these problems, though also use each part such as character string, bitmap and data is carried out the mode that resource is separated management,, also exist the difficult point problem in the resource managements such as possibility that particular not have to separate.
Summary of the invention
In order to address the above problem, the purpose of this invention is to provide a kind of method that does not take the resource cover group method for making of large space very and support needed conserve memory resource space in the application program of above-mentioned resource cover group.
To achieve these goals, formed by following two stages according to resource cover group method for making of the present invention: a): prepare the main cover group of resource, and this resource is merged into a resource stage; B): from the specific purpose resource, only will lead that non-existent resource puts together in the cover group, and make the auxiliary sleeve group stage.
In this is bright, at b) stage makes at least more than one auxiliary sleeve group.
In the present invention, above-mentioned b) above-mentioned auxiliary sleeve group comprises all resources in the stage.
In the present invention, be provided with the GUID that can distinguish various resources in the above-mentioned resource.
As a kind of improvement among the present invention, in the specific resources login, can insert needed cover group link information, can store and read resource needed.
In the present invention, comprise relevant login in the form of above-mentioned link information and show the information header of link and the GUID of the resource cover group of needs link, and can store and read resource needed.
Method according to conserve storage in the application program of a plurality of resource cover of support of the present invention group was made up of following each stage: c1): reading out to provide the basic resources cover of all of existence resource cover groups and application program group simultaneously, recording GUI D and filename stage; C2): formulate the GUID stage that now will use resource; C3): read out each auxiliary sleeve group in the present resource cover group, and remember its sequential stages; C4):, before finding related resource, retrieve, if find above-mentioned related resource, just it is returned related application stage according to the order of main cover group and auxiliary sleeve group when in the invokes application during specific resources; C5): at above-mentioned c4) in the stage, if do not find related resource, just retrieve related resource in the basic resources cover group that from the above-mentioned a) stage, is write down, if find above-mentioned related resource, just it is returned the related application stage; C6): the operation related resource stage.
In the present invention, above-mentioned c1) in the stage, to the storage and the c2 of relevant GUID and filename) method of GUID of formulating and storing the resource of present required use in the stage is: is stored in logging program or other the enactment document.
In the present invention, c4) stage or c5) also comprise in the stage with the next stage: when searching related resource, the content of above-mentioned related resource is if link information, just open resource cover group with link resources cover group GUID, and search related resource, if have, just be converted into the application program stage.
In the present invention, above-mentioned c5) if the stage do not find related resource, just the resource retrieval failure information occurs.
As mentioned above, according to the present invention, use the application program of a plurality of resource cover groups easier resource to be managed, program developer and devisers can be separated correlationship between resource and application program, thereby can improve the efficient of work.
Simultaneously, because eliminated the repetition of common part in a plurality of resource cover groups, the size of resource can more usefully be used in in-problem embedded environment.
Description of drawings
What Fig. 1 was shown is the method skeleton diagram that original application program is used a plurality of resource cover groups.
Fig. 2 is shown is the method flow diagram of making resource cover group according to the embodiment of the invention.
Fig. 3 is shown is method flow diagram according to conserve storage in the application program of a plurality of resource cover of the support of embodiment of the invention group.
Embodiment
Below, with reference to the accompanying drawings the present invention is described in more detail.
Fig. 2 is shown is the method flow diagram of making resource cover group according to the embodiment of the invention.
In the above-described embodiments, the method for making of resource cover group substantially can be divided into and makes main cover group and make the auxiliary sleeve group stage.
Below, will be in the above-described embodiments, before the related application retrieve resources, the method for making resource cover group is elaborated.
With reference to Fig. 2 as can be known, the mode of preparation resource cover group is as follows.
Stipulate employed word at first, in advance.The resource cover group that initial attempt is retrieved is named as main cover group.Other resource cover group of attempting to retrieve when main cover group being retrieved failure is named as the auxiliary sleeve group.
Prepare the main cover group of each resource, and this resource is combined into a cover group.After this, only the non-existent resource of main cover group is concentrated from the resource of specific purpose, and makes auxiliary sleeve group 1.Simultaneously, from the resource of other purpose, only will lead in cover group and the auxiliary sleeve group 1 non-existent resource and concentrate, and make auxiliary sleeve group 2.
Said process moves repeatedly, and all resources are belonged in main cover group and the auxiliary sleeve group.
All given GUID in each resource cover group, when retrieve resources is failed in each resource cover group, all keep the resource GUID tabulation of attempting to search, when in the relevant cover group of application call non-existent resource, just from its next resource cover group, attempt to retrieve, if during failure, attempt again from next resource cover group, to retrieve.
Simultaneously, the login of specific resources also can be irrelevant with basic auxiliary sleeve group, adds resource needed cover group link information, for this resource, with the cover group sequence independence that this cover group is attempted, can specify and read out resource needed.
The form of link information need not be determined, shows the relevant information header of link and the GUID of the link resources cover group of wanting of logining but must comprise.
Under all situations of attempting all to fail, just, from the basic resources cover group that is had, read out and utilize as basic numerical value.
Therefore, the supplemental data shown in the indication has two macrospecies substantially in the present invention.At first, first is when the resource that does not exist application program to call, the tabulation of the resource cover group that search; Another is the link information that replaces each actual file to exist.The tabulation of auxiliary sleeve group is also made as one in the resource cover group resource.
Fig. 3 is shown is method flow diagram according to conserve storage in the application program of a plurality of resource cover of the support of embodiment of the invention group.
Be described in more detail with reference to Fig. 3 below.
201 stages were processes that related application begins.202 stages were processes of setting the auxiliary sleeve group.Read all resource cover groups of existence during application driven, and will be correlated with GUID and filename are recorded in logging program or other enactment document.Simultaneously, the basic resources cover group application programs GUID that provides with application program remembers.Should pass through application program or other setting program, decide the GUID of the resource that is about to use, this also is recorded in logging program or the enactment document.When application driven or resource when change, explorer reads out the auxiliary sleeve group of present resource cover group, and it is remembered in proper order.
203 stages were processes that application program is transferred specific resources.
204 stages in stage to 205 were the processes of searching and returning related resource.
At first, main cover group attempts to search related resource, if but failure, just from first auxiliary sleeve group, search this resource.If successfully from the auxiliary sleeve group, find related resource, just this resource is returned, if failure, and from its next auxiliary sleeve group, search, and carry out repeatable operation in this manner.
206 stages were processes of retrieval related resource from basic cover group.
If all resource cover groups are retrieved all failures, just search resource in the basic resources cover group of from 202 stages, being remembered, and return.
207 stages were processes that application program is used the resource of returning.
Suppose to have all resources that application program will be called in the basic resources cover group, or, prove an abortion just can regard as because kind of document etc. are former thereby failure, and the failure information in return as 208 stages.
In above-mentioned 204 stages and 205 stages, search resource or under the situation that is the resource content link information, just open resource cover group, and from this resource cover group, search identical resource, and return with GUID that will link resources cover group.

Claims (6)

1, the method for making of resource cover group comprises following two stages: a): prepare the main cover group of resource, and this resource is merged into a resource; B): from the specific purpose resource, only will lead that non-existent resource puts together in the cover group, and make the auxiliary sleeve group.
2, the method for making of resource cover group as claimed in claim 1 is characterized in that: be provided with the GUID that can distinguish various resources in the above-mentioned resource.
3, as the method for making of claim item 1 described resource cover group, it is characterized in that: in the specific resources login, can insert needed cover group link information, comprise relevant login in the form of above-mentioned link information and show the information header of link and the GUID of the resource cover group of needs link, and can store and read resource needed.
4, the method for conserve storage in the application program of a plurality of resource cover groups of support, it is characterized in that, comprise with the next stage: c1): reading out to provide the basic resources cover of all of existence resource cover groups and application program group, recording GUI D and filename stage simultaneously; C2): formulate the GUID stage that now will use resource; C3): read out each auxiliary sleeve group in the present resource cover group, and remember its sequential stages; C4):, before finding related resource, retrieve, if find above-mentioned related resource, just it is returned related application stage according to the order of main cover group and auxiliary sleeve group when in the invokes application during specific resources; C5): at above-mentioned c4) in the stage, if do not find related resource, just retrieve related resource in the basic resources cover group that from the above-mentioned a) stage, is write down, if find above-mentioned related resource, just it is returned the related application stage; C6): the operation related resource stage.
5, as the method for conserve storage in the application program of a plurality of resource cover of claim item 4 described supports group, it is characterized in that: above-mentioned c1) in the stage, the storage and the c2 of relevant GUID and filename) method of GUID of formulating and storing the resource of present required use in the stage is: is stored in logging program or other the enactment document.
6, as the method for conserve storage in the application program of a plurality of resource cover of claim item 4 described supports group, it is characterized in that: c4) stage or c5) in the stage when searching related resource, the content of above-mentioned related resource is if link information, just open resource cover group with the link resources cover group GUID of institute, and search related resource, if have, just be converted into the application program stage.
CN 200510041421 2005-08-10 2005-08-10 Making of resource group and method of saving storage space in application program Pending CN1912839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510041421 CN1912839A (en) 2005-08-10 2005-08-10 Making of resource group and method of saving storage space in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510041421 CN1912839A (en) 2005-08-10 2005-08-10 Making of resource group and method of saving storage space in application program

Publications (1)

Publication Number Publication Date
CN1912839A true CN1912839A (en) 2007-02-14

Family

ID=37721780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510041421 Pending CN1912839A (en) 2005-08-10 2005-08-10 Making of resource group and method of saving storage space in application program

Country Status (1)

Country Link
CN (1) CN1912839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105074651A (en) * 2013-01-23 2015-11-18 惠普发展公司,有限责任合伙企业 Shared resource contention

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105074651A (en) * 2013-01-23 2015-11-18 惠普发展公司,有限责任合伙企业 Shared resource contention

Similar Documents

Publication Publication Date Title
CN110083601B (en) Key value storage system-oriented index tree construction method and system
US8554561B2 (en) Efficient indexing of documents with similar content
US5222235A (en) Databases system for permitting concurrent indexing and reloading of data by early simulating the reload process to determine final locations of the data
US20080271042A1 (en) Testing multi-thread software using prioritized context switch limits
CN1264106C (en) Method for accessing database system uniformly
Aoe et al. A trie compaction algorithm for a large set of keys
CN1264083C (en) Method and apparatus for maintaining context while executing translated instructions
CN1531692A (en) Efficient collation element structure for handling large numbers of characters
CN1581170A (en) Method and system for comparing files of two computers
CN100340997C (en) Automatic test method of application
CN1016835B (en) Method and apparatus for search
CN1947119A (en) System and method for efficient file content searching within a file system
CN1920793A (en) Device and method for implementing test scenarios replay in different voice environment
CN1728106A (en) Method for positioning malfunction of application program
CN1345426A (en) System and method for extracting index key data fields
US20110113052A1 (en) Query result iteration for multiple queries
KR20170065374A (en) Method for Hash collision detection that is based on the sorting unit of the bucket
CN101055542A (en) Symbol debug method and system in cross integration development environment
CN1912839A (en) Making of resource group and method of saving storage space in application program
US7308448B1 (en) Method and apparatus for implementing a lock-free skip list that supports concurrent accesses
CN116150093B (en) Method for realizing object storage enumeration of objects and electronic equipment
CN1851656A (en) Automatic test method based on database operation
US20040006562A1 (en) Method, system and program product for automatically retrieving documents
CN112181288B (en) Data processing method of nonvolatile storage medium and computer storage medium
CN114489480A (en) Method and system for high-concurrency data storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication