CN108089893B - Method and device for determining redundant resources, terminal equipment and storage medium - Google Patents

Method and device for determining redundant resources, terminal equipment and storage medium Download PDF

Info

Publication number
CN108089893B
CN108089893B CN201711343797.5A CN201711343797A CN108089893B CN 108089893 B CN108089893 B CN 108089893B CN 201711343797 A CN201711343797 A CN 201711343797A CN 108089893 B CN108089893 B CN 108089893B
Authority
CN
China
Prior art keywords
resource
resources
invalid
redundant
determining
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
CN201711343797.5A
Other languages
Chinese (zh)
Other versions
CN108089893A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201711343797.5A priority Critical patent/CN108089893B/en
Publication of CN108089893A publication Critical patent/CN108089893A/en
Application granted granted Critical
Publication of CN108089893B publication Critical patent/CN108089893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

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

Abstract

The invention provides a method, a device, terminal equipment and a storage medium for determining redundant resources, wherein the method comprises the steps of determining the reference relation between each resource and other resources in a resource library according to a pre-acquired resource reference rule; constructing a bidirectional resource reference graph of the resource library according to the reference relation between each resource and other resources in the resource library; acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; and deleting the redundant resources. The redundant resources found by the embodiment of the invention are more comprehensive and complete, the redundant resources do not need to be circularly deleted and the rest resources do not need to be traversed, all the redundant resources in the resource library can be comprehensively and accurately determined, and preparation is made for deleting the redundant resources once, so that the efficiency of deleting the redundant resources is improved.

Description

Method and device for determining redundant resources, terminal equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining redundant resources, a terminal device, and a storage medium.
Background
In the process of software development, in order to make software have better performance, existing software resources often need to be iterated; the number of resources is increased and the number of clients is increased inevitably in the resource iteration process. In principle, however, the iterated resources do not need to be present in the game client. Therefore, how to accurately determine the redundant resources in the software, delete the redundant resources, and reduce the size of the client is a very problem to be solved.
The following two schemes are mainly used in the prior art to determine redundant resources.
The first scheme is as follows: searching resource names in a resource library through a regular expression to determine whether the resources are quoted, if a certain resource is searched, considering that the resource is quoted by other resources, and excluding the resource from redundant resources; otherwise, if the resource is not searched, the resource is considered not to be referenced by other resources, and the resource is determined to belong to the redundant resource.
The first solution has the disadvantage of low efficiency and accuracy. The number of resources in the resource library is huge, and each resource needs to be searched by a regular expression according to the method of the first scheme, so that long time is consumed, and the efficiency is low; meanwhile, the regular expression searching mode is only suitable for directly using the resource name to search, and when the reference mode is complex, the regular expression searching is likely to fail to search the referenced resources, so that the resources are deleted by mistake, and the accuracy is low.
Scheme II: all referenced resources are determined using reference rules, which need to be pre-configured or obtained. Various kinds of software load various kinds of resources with certain rules. For example, if a model file needs to be displayed, at least one texture file and one material file need to be loaded in advance to display a normal model file; for example, if an icon of an item needs to be displayed in a game, a correct icon file is loaded by acquiring a corresponding icon file name defined in a plan table through an item id; how to know which map file it depends on through the model file and how to obtain the correct icon file through the item id is called a reference rule. For example, android software references to resources are most often two, although the reference rules used in different software programs may be different. Specifically, each reference rule may determine a set that is referenced by another resource, which is referred to as an effective resource set hereinafter, so that a union of the effective resource sets of all reference rules forms an effective resource aggregate, each resource is compared with the effective resource aggregate, and resources that do not belong to the effective resource aggregate are classified as redundant resources. And in the second scheme, the referenced resources are judged based on the reference rule, so that the accuracy is improved, and the condition of mistaken deletion is reduced.
The inventors of the present application have found that the second solution, although being able to improve accuracy, still has a problem of relatively low efficiency. The reason is that scheme two determines redundant and non-redundant resources by determining which resources are not referenced and which resources are referenced, but scheme two does not further determine which resources are actually referenced by referenced resources. The inventor of the present application finds that when a resource is only referred to by a known redundant resource, the resource is not referred to effectively and should be included in the redundant resource for deletion. In the second scheme, the resources of the resource library can only be found out from the resources which are not referenced at present and redundant resources are determined from the resources to delete, and after the resources are deleted, the resources of the resource library are traversed again to determine whether redundant resources exist. For example, resource a is referenced only by resource B, which is not referenced by any other resource, and on the first pass resource B is considered a redundant resource since it is not referenced by any other resource, and resource a is considered not a redundant resource since it is referenced by resource B. After deleting the resource B, traversing all the remaining resources again, and finding that the resource A is a new redundant resource because the resource B is deleted and the resource A is not referred by any other resource.
It can be seen that, both resource a and resource B belong to redundant resources, but in the second scheme, only resource B can be determined to be redundant resource at first, and then, the current redundant resource (including resource B) is deleted before resource a is found to be also redundant resource. Therefore, according to the second scheme, all redundant resources cannot be determined at one time, after the redundant resources are deleted for the first time, new redundant resources may appear, and it is also necessary to traverse all the remaining resources again to determine that there are no redundant resources, if the redundant resources are deleted again. It can be seen that the efficiency of subsequently deleting the redundant resources is affected because the scheme two is not comprehensive and accurate enough in determining the redundant resources.
Disclosure of Invention
The invention aims to provide a method and a device for determining redundant resources, terminal equipment and a storage medium, which can comprehensively and accurately determine all redundant resources in a resource library and prepare for deleting the redundant resources for the next time, so that the efficiency of deleting the redundant resources is improved.
In order to achieve the above object, an aspect of the embodiments of the present invention provides a method for determining redundant resources, including:
determining the reference relationship between each resource and other resources in the resource library according to a pre-acquired resource reference rule;
constructing a bidirectional resource reference graph of the resource library according to the reference relation between each resource and other resources in the resource library;
acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; the invalid resource refers to a resource that is not validly referenced.
Preferably, the resources that are not referenced validly include resources that are not referenced by other resources and belong to a particular resource type, and resources that are referenced only by other invalid resources.
Preferably, the reference relationship between each resource and other resources includes a parent node resource and a child node resource of each resource; the father node resource refers to other resources of the resource library; the child node resource is other resources referenced by the resource in the resource library.
Preferably, the acquiring all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map includes:
acquiring resources without parent node resources in the resource library by traversing the bidirectional resource reference graph;
obtaining invalid resources in the resources without the father node resources and updating an invalid resource set according to the obtained invalid resources;
when a newly added invalid resource exists in the invalid resource set, acquiring invalid resources in all child node resources of the newly added invalid resource and updating the invalid resource set according to the acquired invalid resources; when all father node resources of the ith child node resource of the newly added invalid resource belong to invalid resources, judging that the ith child node is an invalid resource;
and when the invalid resources do not exist in all the child node resources of the newly added invalid resources, taking all the invalid resources in the invalid resource set as the redundant resources.
Preferably, the obtaining of an invalid resource in a resource without a parent node resource and updating an invalid resource set according to the obtained invalid resource includes:
determining a resource type of the resource without the parent node resource;
when the resource type is an art resource, determining that the resource without the father node resource is an invalid resource; when the resource type is a plan table or a program code, determining that the resource without the father node resource is an effective resource;
and updating the invalid resource set according to the invalid resources in the resources without the parent node resources.
Preferably, the method further comprises:
before determining the reference relationship between each resource and other resources in the resource library, analyzing the resource with the resource type of the art resource in the resource library to obtain the reference rule of the art resource to other resources; analyzing the resource type in the resource library to be the resource of the planning table to obtain the reference rule of the planning table to other resources; analyzing the resource with the resource type of the program code in the resource library to obtain a reference rule of the program code to other resources;
and obtaining the resource reference rule according to the reference rule of the art resource to other resources, the reference rule of the plan table to other resources and the reference rule of the program code to other resources.
Preferably, the method further comprises:
traversing each resource in the resource library to generate res structure information of each resource; the res structure information includes a resource type of the resource and flag information for marking whether the resource is valid; wherein the flag information is initially set to valid;
and when the resource is determined to be an invalid resource, modifying the marking information recorded in the res structure information of the resource into invalid for subsequent judgment.
Preferably, the method further comprises:
after determining the redundant resource, checking the redundant resource to determine whether a supplementary reference rule is needed;
and updating the reference rule to be supplemented to the resource reference rule when the reference rule needs to be supplemented so as to re-determine the redundant resource.
Preferably, the method further comprises:
and when the reference rule does not need to be supplemented, deleting the redundant resources to release the storage space occupied by the redundant resources.
Preferably, after the redundant resource is acquired, checking the redundant resource to determine whether a reference rule needs to be supplemented includes:
after the redundant resources are acquired, searching the redundant resources through a regular expression to determine whether the redundant resources are quoted;
and when the referenced redundant resources are searched, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the referenced redundant resources.
Preferably, after the redundant resource is acquired, checking the redundant resource to determine whether a reference rule needs to be supplemented includes:
after the redundant resources are obtained, checking the redundant resource occupation ratio and the redundant resource quantity of each resource folder in the resource library; the redundant resource occupation ratio is the proportion of the quantity of redundant resources in the resource folder to the total quantity of resources in the resource folder;
when the redundant resource proportion of one resource folder is larger than a preset proportion threshold or the redundant resource quantity is larger than a preset quantity threshold, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the redundant resources in the resource folder.
Preferably, the method further comprises:
checking whether error report occurs in the program running process;
when an error occurs, positioning the reason of the error according to the error-reporting file;
and acquiring a reference rule to be supplemented according to the error reporting reason and updating the reference rule to be supplemented to the resource reference rule.
In order to achieve the same object, a second aspect of the embodiments of the present invention provides a redundant resource deleting apparatus, including:
the reference relation determining module is used for determining the reference relation between each resource and other resources in the resource library according to the pre-acquired resource reference rule;
the reference map construction module is used for constructing a bidirectional resource reference map of the resource library according to the reference relation between each resource and other resources in the resource library;
a redundant resource obtaining module, configured to obtain all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map; the invalid resource refers to a resource that is not validly referenced.
In order to achieve the same object, a third aspect of embodiments of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the method for determining the redundant resource according to the first aspect when executing the computer program.
In order to achieve the same object, a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where the computer program, when running, controls an apparatus in which the computer-readable storage medium is located to perform the method for determining redundant resources according to the first aspect.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the embodiment of the invention provides a method, a device, terminal equipment and a storage medium for determining redundant resources, wherein the method comprises the steps of determining the reference relation between each resource and other resources in a resource library according to a pre-acquired resource reference rule; constructing a bidirectional resource reference graph of the resource library according to the reference relation between each resource and other resources in the resource library; acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; the invalid resource refers to a resource which is not effectively referenced; and deleting the redundant resources. Compared with the mode of finding out the redundant resources by using the reference rule, the redundant resources found by the embodiment of the invention are more comprehensive and complete, the redundant resources do not need to be circularly deleted and the rest resources do not need to be traversed, all the redundant resources can be found by traversing the bidirectional resource reference map once, new redundant resources do not appear after the redundant resources are subsequently deleted, all the redundant resources in the resource library can be comprehensively and accurately determined, the preparation is made for deleting the redundant resources once, and the efficiency of deleting the redundant resources is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for determining redundant resources according to an embodiment of the present invention;
FIG. 2 is a simplified view of the bidirectional resource reference map constructed in step S2;
fig. 3 is a detailed flowchart of step S3 in fig. 1;
fig. 4 is a schematic structural diagram of a redundant resource deletion apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of the redundant resource acquisition module 3 in fig. 4.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a flowchart illustrating a method for determining redundant resources according to an embodiment of the present invention. The method comprises the following steps:
s1, determining the reference relationship between each resource and other resources in the resource library according to the pre-obtained resource reference rule;
s2, constructing a bidirectional resource reference map of the resource library according to the reference relationship between each resource and other resources in the resource library;
s3, acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; the invalid resource refers to a resource that is not validly referenced.
In step S1, there are many resource reference rules, and for each resource, finding the applicable resource reference rule can find that the resource references those resources, thereby obtaining the reference relationship between each resource and other resources in the resource library.
In the embodiment of the present invention, not only the resources that are not currently referenced but also the resources that are not actively referenced, i.e., the invalid resources, are considered when determining the redundant resources. All invalid resources can be found as redundant resources through the bidirectional resource reference graph, so that the determined redundant resources are more comprehensive and more accurate, and new redundant resources can not be generated after the redundant resources are deleted once.
In an alternative embodiment, the resources that are not referenced by valid references include resources that are not referenced by other resources and resources that are referenced only by other invalid resources. More specifically, the resources that are not referenced validly include resources that are not referenced by other resources and belong to a particular resource type, and resources that are referenced only by other invalid resources.
As shown in fig. 2, it is a simple view of the bidirectional resource reference map constructed in step S2. Each node in fig. 2 represents a resource, and for the sake of simplicity, the model in fig. 2 is that there are only resources a to N in the resource pool, but actually the number of resources in the resource pool is far more than this number. By bidirectional is meant that for the same resource it can be determined that the resource references and is referenced by those resources at the same time, and the arrow in fig. 2 points to that the referenced resource points to the resource that needs to be referenced, e.g., resource D references resource E and resource H, while resource D is referenced by resource B and resource C. The process of the bidirectional resource reference map constructed by step S2 can be understood as follows: and arranging the resources in the resource library as nodes on the bidirectional resource reference map, and connecting the referenced two nodes by using arrows according to the reference relation so as to construct the bidirectional resource reference map.
It should be noted that, since the number of resources in the resource pool is huge, each resource may refer to multiple resources, and may also be referred to by multiple resources, the bidirectional resource reference map generally has a complex mesh structure. However, no matter the structure is more complex, there are resources (such as resource a, resource B and resource M in fig. 2) in the bidirectional resource reference map that are not referenced by other resources. Resources that are not referenced by other resources are not necessarily invalid resources, and only resources that satisfy a particular resource type are considered invalid resources, otherwise all resources are considered invalid resources.
To illustrate the process of traversing the bidirectional resource reference map to obtain all invalid resources as the redundant resources in the resource pool in step S3, it is assumed that resource a and resource M in fig. 2 are both invalid resources, and resource B is a valid resource. Then, by traversing the bidirectional resource reference map, it can be found that, in addition to the fact that the resource a and the resource M are invalid resources, since the resource C is only referenced by the resource a and the resource L is only referenced by the resource M, the resource C and the resource L belong to resources that are not effectively referenced, that is, the resource C and the resource M also belong to invalid resources; resource N is referenced by both resource L and resource C, but since resource C and resource M also belong to invalid resources, resource N belongs to a resource that is not referenced validly, i.e., resource N is also an invalid resource. It should be noted that resource D is referred to by resource B and resource C at the same time, and since resource B is a valid resource, resource D does not belong to an invalid resource. Therefore, by traversing the bidirectional resource reference map, all resources in the resource library that are not referenced effectively (i.e., invalid resources) can be found, thereby determining redundant resources in the resource library. The redundant resources are represented by black circles in fig. 2, including resource A, C, L, M, N.
The method for determining redundant resources provided by the embodiment of the invention obtains the reference relation between each resource and other resources according to the reference rule obtained in advance and constructs the bidirectional resource reference map according to the reference relation, all resources which are not effectively referenced can be found out as redundant resources according to the bidirectional resource reference map, compared with a mode of finding out the redundant resources by using a reference rule, the redundant resources found out by the embodiment of the invention are more comprehensive and complete, the redundant resources are not required to be circularly deleted and the rest resources are not required to be traversed, all the redundant resources can be found out only by traversing the bidirectional resource reference map once, and new redundant resources can not appear after the redundant resources are subsequently deleted, therefore, all redundant resources in the resource library can be completely and accurately determined, and preparation is made for deleting the redundant resources for the next time, so that the efficiency of deleting the redundant resources is improved.
In addition, because a bidirectional resource reference graph is constructed, the relation between any resource can be clearly understood, so that a series of resource inspection tools such as resource reference inspection, resource physical position inquiry, resource use condition inquiry, resource iteration integrity inspection and the like can be provided besides the basis of deleting redundant resources, and the application is wide.
In an optional embodiment, the reference relationship between each resource and other resources includes a parent node resource and a child node resource of each resource; the father node resource refers to other resources of the resource library; the child node resource is other resources referenced by the resource in the resource library. For example, for resource D in FIG. 2, its parent node resources include resource B and resource C, its child node resources include resource E and resource H, and so on.
As shown in fig. 3, it is a specific flowchart of step S3 in fig. 1. In step S3, the obtaining all invalid resources as the redundant resources in the resource pool by traversing the bidirectional resource reference map includes:
s31, acquiring the resource without father node resource in the resource library by traversing the bidirectional resource reference graph;
s32, acquiring invalid resources in the resources without the father node resources and updating an invalid resource set according to the acquired invalid resources;
s33, when a newly added invalid resource exists in the invalid resource set, acquiring invalid resources in all child node resources of the newly added invalid resource and updating the invalid resource set according to the acquired invalid resources; when all father node resources of the ith child node resource of the newly added invalid resource belong to invalid resources, judging that the ith child node is an invalid resource;
and S34, when the invalid resources do not exist in all the child node resources of the newly added invalid resources, taking all the invalid resources in the invalid resource set as the redundant resources.
The above describes in detail how to obtain the redundant resource by traversing the bidirectional resource reference map in step S3. And determining the invalid resources in the resources without the father node resources, determining new invalid resources from all the child node resources of the invalid resources, and performing recursion according to the mode, wherein when the invalid resources cannot be found in all the child node resources of the new invalid resources, the recursion is finished at the moment, and all the determined invalid resources are the redundant resources.
The following describes the implementation procedure of step S3 by taking the bidirectional resource reference diagram of fig. 2 as an example.
1. Determining that the resources A and M are invalid resources through the step S31 and the step S32, wherein the invalid resource set is changed from an empty set to { A, M }, namely, the newly added invalid resources comprise the resource A and the resource M, and all child node resources of the newly added invalid resources comprise the resource C and the resource L;
2. the father node resource of the resource C is the resource A and the resource A is an invalid resource, the resource C is determined to be an invalid resource; because the father node resource of the resource L is the resource M and the resource M is an invalid resource, the resource L is determined to be an invalid resource, the invalid resource set is changed from { A, M } to { A, M, C, L }, the newly added invalid resource comprises the resource C and the resource L, and all child node resources of the newly added invalid resource comprise the resource N and the resource D;
3. the father node resource of the resource N is a resource C and a resource L, and the resource C and the resource L are both invalid resources, the resource N is determined to be an invalid resource; since the parent node resource of resource D is resource B and resource C, and resource B is a valid resource, resource D belongs to a valid referenced resource, and resource D does not belong to an invalid resource. Therefore, the invalid resource set is changed from { A, M, C, L } to { A, M, C, L, N }, the newly added invalid resource comprises a resource N, and the newly added invalid resource has no child node resource, so that the recursion is ended.
4. All invalid resources in the current invalid resource set { A, M, C, L, N } are redundant resources.
It should be noted that steps S31 to S34 are only a specific implementation of step S3 of the embodiment of the present invention, and the embodiment of the present invention is intended to obtain all resources that are not effectively referenced as redundant resources by traversing the bidirectional resource reference map, so that the manner of obtaining all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map is optional.
In an optional implementation manner, the obtaining invalid resources in the resources without the parent node resource and updating the invalid resource set according to the obtained invalid resources includes:
determining a resource type of the resource without the parent node resource;
when the resource type is an art resource, determining that the resource without the father node resource is an invalid resource; when the resource type is a plan table or a program code, determining that the resource without the father node resource is an effective resource;
and updating the invalid resource set according to the invalid resources in the resources without the parent node resources.
The resources of the software program mainly comprise a planning table, program codes and art resources. In the software program iteration process, the main resources generating the redundant resources are art resources such as icons, stickers and the like, and the plans and the program codes basically do not generate the redundant resources, so that the redundant resources are actually deleted for the art resources. Therefore, in the embodiment of the present invention, if the resource without the parent node resource is an art resource, the resource is considered as an invalid resource, and if the resource without the parent node resource is a plan table or a program code, the resource is not considered as an invalid resource. In fact, although the plan table or the program code is not referenced by other resources, they are called by other functional modules, and if they are regarded as invalid resources and deleted, they are likely to affect the normal operation of the software program, so they cannot be regarded as invalid resources and deleted.
In an optional embodiment, the method further comprises:
before determining the reference relationship between each resource and other resources in the resource library, analyzing the resource with the resource type of the art resource in the resource library to obtain the reference rule of the art resource to other resources; analyzing the resource type in the resource library to be the resource of the planning table to obtain the reference rule of the planning table to other resources; analyzing the resource with the resource type of the program code in the resource library to obtain a reference rule of the program code to other resources;
and obtaining the resource reference rule according to the reference rule of the art resource to other resources, the reference rule of the plan table to other resources and the reference rule of the program code to other resources.
Since the main components in the software resources are the art resources, the plan table and the program codes, the resources are analyzed in advance according to the three resource types, and all the reference rules can be obtained. If the obtained resource reference rule is richer, the constructed bidirectional resource reference graph is more perfect, the accuracy of obtaining the redundant resource is higher, and the situation of mistaken deletion is further reduced. The above process of obtaining the resource reference rule is referred to as a process of building the reference rule in the forward direction.
In an optional embodiment, the method further comprises:
traversing each resource in the resource library to generate res structure information of each resource; the res structure information includes a resource type of the resource and flag information for marking whether the resource is valid; wherein the flag information is initially set to valid;
and when the resource is determined to be an invalid resource, modifying the marking information recorded in the res structure information of the resource into invalid for subsequent judgment.
The res structure information of each resource is generated in advance, and when the resource type and the validity of the resource need to be judged, the res structure information is only needed to be inquired, so that the efficiency of obtaining the redundant resource is further improved.
In the process of forward construction of the reference rule, missing rules are likely to occur, so that the found redundant resources are not complete enough, and therefore, it is desirable to perform missing check and supplement on the constructed rules by means of reverse search.
In an optional embodiment, the method further comprises:
after determining the redundant resource, checking the redundant resource to determine whether a supplementary reference rule is needed;
and when the reference rule needs to be supplemented, updating the reference rule to be supplemented to the resource reference rule to reacquire the redundant resource.
Through a reverse search mode, missing resource reference rules are well supplemented, a bidirectional resource reference graph is perfected, mistakenly deleted resources can be accurately recovered when the mistakenly deleted resources are recovered, and the situation that invalid resources are recovered needs to be avoided.
In an alternative embodiment, when the supplementary reference rule is not needed, the redundant resource is deleted to release the storage space occupied by the redundant resource.
In an alternative embodiment, the checking the redundant resource to determine whether a supplementary reference rule is required includes:
searching the redundant resource through a regular expression to determine whether the redundant resource is referenced;
and when the referenced redundant resources are searched, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the referenced redundant resources.
In the method, the whole resource library can be searched by using the regular expression of keywords such as a complete file name, a partial file name, a file name without an extension, a file path and the like, and whether the missing resources exist or not can be checked.
For example, if it is desired to check if f1/f2/f3/a _ b. arp resources are referenced, then a search for items can be conducted with the following keywords: arp; a _. arp; a _ b; f1/f2/f3, and the like.
Since it is the prior art to search whether resources are referred to by using a regular expression, details are not described in the embodiment of the present invention.
In another optional embodiment, the checking the redundant resource to determine whether a supplementary reference rule is needed includes:
checking the redundant resource occupation ratio and the redundant resource quantity of each resource folder in the resource library; the redundant resource occupation ratio is the proportion of the quantity of redundant resources in the resource folder to the total quantity of resources in the resource folder;
when the redundant resource proportion of one resource folder is larger than a preset proportion threshold or the redundant resource quantity is larger than a preset quantity threshold, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the redundant resources in the resource folder.
In the embodiment of the present invention, all resource folders are checked, and if most resource files (more than 90%) in a certain resource folder belong to redundant resources, or if there are too many redundant resources (e.g. more than 100), it is required to preferentially check whether a resource reference rule is missed.
The resource folder structure of a software project is usually designed reasonably, so that files with the same function are often placed in the same folder. Therefore, if a certain folder has a large amount of "redundant resources", it may be that the folder is discarded and used in the iterative process, or the bidirectional resource reference map may omit the resource reference rule related to the resource folder.
Therefore, when the redundant resource proportion of one resource folder is greater than the preset proportion threshold or the redundant resource quantity is greater than the preset quantity threshold, the reference rule to be supplemented needs to be obtained according to the redundant resources in the resource folder.
In an optional embodiment, the method further comprises:
checking whether error report occurs in the program running process;
when an error occurs, positioning the reason of the error according to the error-reporting file;
and acquiring a reference rule to be supplemented according to the error reporting reason and updating the reference rule to be supplemented to the resource reference rule.
For example, if resources are lost in the game process, the client is often triggered to report errors. Therefore, when the game is in a normal test process, logs of all the clients are collected, the error reporting reasons of the clients are located according to the error reporting files, and the missing resource reference rules can be found.
Please refer to fig. 4, which is a schematic structural diagram of a redundant resource deleting apparatus according to an embodiment of the present invention. The redundant resource deleting device is configured to execute the method for determining the redundant resource described in fig. 1, and includes:
the reference relation determining module 1 is used for determining the reference relation between each resource and other resources in the resource library according to a pre-acquired resource reference rule;
the reference map building module 2 is used for building a bidirectional resource reference map of the resource library according to the reference relationship between each resource and other resources in the resource library;
a redundant resource determining module 3, configured to obtain all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map; the invalid resource refers to a resource which is not effectively referenced;
please refer to fig. 5, which is a block diagram illustrating the structure of the redundant resource determining module 3 in fig. 4. In an optional embodiment, the reference relationship between each resource and other resources includes a parent node resource and a child node resource of each resource; the father node resource refers to other resources of the resource library; the child node resource is other resources referred by the resource in the resource library;
the redundant resource acquisition module 3 includes:
a first resource obtaining unit 31, configured to obtain a resource without a parent node resource in the resource library by traversing the bidirectional resource reference map;
a second resource obtaining unit 32, configured to obtain an invalid resource in the resource without the parent node resource and update an invalid resource set according to the obtained invalid resource;
a third resource obtaining unit 33, configured to, when a newly added invalid resource exists in the invalid resource set, obtain an invalid resource in all child node resources of the newly added invalid resource, and update the invalid resource set according to the obtained invalid resource; when all father node resources of the ith child node resource of the newly added invalid resource belong to invalid resources, judging that the ith child node is an invalid resource;
a redundant resource determining unit 34, configured to, when there is no invalid resource in all child node resources of the newly added invalid resource, take all invalid resources in the invalid resource set as the redundant resource.
In an optional implementation manner, the second resource obtaining unit 32 is specifically configured to:
determining a resource type of the resource without the parent node resource;
when the resource type is an art resource, determining that the resource without the father node resource is an invalid resource; when the resource type is a plan table or a program code, determining that the resource without the father node resource is an effective resource;
and updating the invalid resource set according to the invalid resources in the resources without the parent node resources.
In an alternative embodiment, the apparatus further comprises:
the resource analysis module is used for analyzing the resources with the resource types of the art resources in the resource library before determining the reference relationship between each resource and other resources in the resource library to obtain the reference rule of the art resources to other resources; analyzing the resource type in the resource library to be the resource of the planning table to obtain the reference rule of the planning table to other resources; analyzing the resource with the resource type of the program code in the resource library to obtain a reference rule of the program code to other resources;
and the reference rule acquisition module is used for obtaining the resource reference rule according to the reference rule of the art resource to other resources, the reference rule of the plan table to other resources and the reference rule of the program code to other resources.
In an alternative embodiment, the apparatus further comprises:
the structure information generating module is used for traversing each resource in the resource library and generating res structure information of each resource; the res structure information includes a resource type of the resource and flag information for marking whether the resource is valid; wherein the flag information is initially set to valid;
and the mark information modification module is used for modifying the mark information recorded in the res structure information of the resource into invalid for subsequent judgment and use when the resource is determined to be an invalid resource.
In an alternative embodiment, the apparatus further comprises:
the redundant resource checking module is used for checking the redundant resources to judge whether a reference rule needs to be supplemented or not after the redundant resources are determined;
and the first reference rule updating module is used for updating the reference rule to be supplemented to the resource reference rule to reacquire the redundant resource when the reference rule needs to be supplemented.
In an alternative embodiment, the apparatus further comprises:
and the redundant resource deleting module is used for deleting the redundant resources to release the storage space occupied by the redundant resources when the reference rule does not need to be supplemented.
In an optional implementation manner, the redundant resource checking module is specifically configured to:
searching the redundant resource through a regular expression to determine whether the redundant resource is referenced;
and when the referenced redundant resources are searched, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the referenced redundant resources.
In another optional implementation manner, the redundant resource checking module is specifically configured to:
checking the redundant resource occupation ratio and the redundant resource quantity of each resource folder in the resource library; the redundant resource occupation ratio is the proportion of the quantity of redundant resources in the resource folder to the total quantity of resources in the resource folder;
when the redundant resource proportion of one resource folder is larger than a preset proportion threshold or the redundant resource quantity is larger than a preset quantity threshold, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the redundant resources in the resource folder.
In an alternative embodiment, the apparatus further comprises:
the error reporting checking module is used for checking whether error reporting occurs in the program running process;
the error reporting reason positioning module is used for positioning the reason of the error according to the error reporting file when the error reporting occurs;
and the second reference rule updating module is used for acquiring the reference rule to be supplemented according to the error reporting reason and updating the reference rule to be supplemented to the resource reference rule.
It should be noted that, the redundant resource determining apparatus provided in the embodiment of the present invention is configured to execute all the method flows of the above redundant resource determining method, and the working principles and beneficial effects of the two methods are in one-to-one correspondence, and thus are not described again.
Accordingly, an embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes the computer program to implement the steps in the foregoing method for determining redundant resources, for example, steps S1 to S3 shown in fig. 1; or the processor, when executing the computer program, implements the functions of the modules/units in the above-described redundant resource deletion apparatus embodiment, for example, the modules in fig. 4.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the terminal device.
The terminal device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal device may include, but is not limited to, a processor, a memory.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the terminal device and connects the various parts of the whole terminal device using various interfaces and lines.
The memory may be used for storing the computer programs and/or modules, and the processor may implement various functions of the terminal device by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the terminal device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where, when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to perform the steps in the foregoing method for determining redundant resources, for example, steps S1 to S3 shown in fig. 1.
Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the embodiment of the invention provides a method, a device, terminal equipment and a storage medium for determining redundant resources, wherein the method comprises the steps of determining the reference relation between each resource and other resources in a resource library according to a pre-acquired resource reference rule; constructing a bidirectional resource reference graph of the resource library according to the reference relation between each resource and other resources in the resource library; acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; the invalid resource refers to a resource that is not validly referenced. Compared with the mode of finding out the redundant resources by using the reference rule, the redundant resources found by the embodiment of the invention are more comprehensive and complete, the redundant resources do not need to be circularly deleted and the rest resources do not need to be traversed, all the redundant resources can be found by traversing the bidirectional resource reference map once, new redundant resources do not appear after the redundant resources are subsequently deleted, all the redundant resources in the resource library can be comprehensively and accurately determined, the preparation is made for deleting the redundant resources once, and the efficiency of deleting the redundant resources is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (13)

1. A method for determining redundant resources, comprising:
determining the reference relationship between each resource and other resources in the resource library according to a pre-acquired resource reference rule;
constructing a bidirectional resource reference graph of the resource library according to the reference relation between each resource and other resources in the resource library;
acquiring all invalid resources as redundant resources in the resource library by traversing the bidirectional resource reference map; the invalid resource refers to a resource which is not referenced by the valid resource;
the reference relation between each resource and other resources comprises a father node resource and a child node resource of each resource; the father node resource refers to other resources of the resource library; the child node resource is other resources referred by the resource in the resource library; the obtaining all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map includes:
acquiring resources without parent node resources in the resource library by traversing the bidirectional resource reference graph;
obtaining invalid resources in the resources without the father node resources and updating an invalid resource set according to the obtained invalid resources;
when a newly added invalid resource exists in the invalid resource set, acquiring invalid resources in all child node resources of the newly added invalid resource and updating the invalid resource set according to the acquired invalid resources; when all father node resources of the ith child node resource of the newly added invalid resource belong to invalid resources, judging that the ith child node is an invalid resource;
and when the invalid resources do not exist in all the child node resources of the newly added invalid resources, taking all the invalid resources in the invalid resource set as the redundant resources.
2. The method for determining redundant resources according to claim 1, wherein the resources that are not referenced by a valid resource include resources that are not referenced by other resources and belong to a specific resource type, and resources that are referenced only by other invalid resources.
3. The method for determining redundant resources according to claim 1, wherein the obtaining invalid resources from among resources without parent node resources and updating the invalid resource set according to the obtained invalid resources comprises:
determining a resource type of the resource without the parent node resource;
when the resource type is an art resource, determining that the resource without the father node resource is an invalid resource; when the resource type is a plan table or a program code, determining that the resource without the father node resource is an effective resource;
and updating the invalid resource set according to the invalid resources in the resources without the parent node resources.
4. A method for determining redundant resources according to claim 1 or 2, wherein the method further comprises:
before determining the reference relationship between each resource and other resources in the resource library, analyzing the resource with the resource type of the art resource in the resource library to obtain the reference rule of the art resource to other resources; analyzing the resource type in the resource library to be the resource of the planning table to obtain the reference rule of the planning table to other resources; analyzing the resource with the resource type of the program code in the resource library to obtain a reference rule of the program code to other resources;
and obtaining the resource reference rule according to the reference rule of the art resource to other resources, the reference rule of the plan table to other resources and the reference rule of the program code to other resources.
5. The method of determining redundant resources of claim 4, further comprising:
traversing each resource in the resource library to generate res structure information of each resource; the res structure information includes a resource type of the resource and flag information for marking whether the resource is valid; wherein the flag information is initially set to valid;
and when the resource is determined to be an invalid resource, modifying the marking information recorded in the res structure information of the resource into invalid for subsequent judgment.
6. A method for determining redundant resources according to claim 1 or 2, wherein the method further comprises:
after determining the redundant resource, checking the redundant resource to determine whether a supplementary reference rule is needed;
and updating the reference rule to be supplemented to the resource reference rule when the reference rule needs to be supplemented so as to re-determine the redundant resource.
7. The method of determining redundant resources of claim 6, further comprising:
and when the reference rule does not need to be supplemented, deleting the redundant resources to release the storage space occupied by the redundant resources.
8. The method for determining redundant resources according to claim 6, wherein said checking said redundant resources to determine whether a supplementary reference rule is required after said obtaining said redundant resources comprises:
after the redundant resources are acquired, searching the redundant resources through a regular expression to determine whether the redundant resources are quoted;
and when the referenced redundant resources are searched, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the referenced redundant resources.
9. The method for determining redundant resources according to claim 6, wherein said checking said redundant resources to determine whether a supplementary reference rule is required after said obtaining said redundant resources comprises:
after the redundant resources are obtained, checking the redundant resource occupation ratio and the redundant resource quantity of each resource folder in the resource library; the redundant resource occupation ratio is the proportion of the quantity of redundant resources in the resource folder to the total quantity of resources in the resource folder;
when the redundant resource proportion of one resource folder is larger than a preset proportion threshold or the redundant resource quantity is larger than a preset quantity threshold, judging that the reference rule needs to be supplemented, and acquiring the reference rule to be supplemented according to the redundant resources in the resource folder.
10. The method of determining redundant resources of claim 1, further comprising:
checking whether error report occurs in the program running process;
when an error occurs, positioning the reason of the error according to the error-reporting file;
and acquiring a reference rule to be supplemented according to the error reporting reason and updating the reference rule to be supplemented to the resource reference rule.
11. A redundant resource determination apparatus, comprising:
the reference relation determining module is used for determining the reference relation between each resource and other resources in the resource library according to the pre-acquired resource reference rule;
the reference map construction module is used for constructing a bidirectional resource reference map of the resource library according to the reference relation between each resource and other resources in the resource library;
a redundant resource determining module, configured to obtain all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map; the invalid resource refers to a resource which is not referenced by the valid resource;
the reference relation between each resource and other resources comprises a father node resource and a child node resource of each resource; the father node resource refers to other resources of the resource library; the child node resource is other resources referred by the resource in the resource library; the obtaining all invalid resources as redundant resources in the resource pool by traversing the bidirectional resource reference map includes:
acquiring resources without parent node resources in the resource library by traversing the bidirectional resource reference graph;
obtaining invalid resources in the resources without the father node resources and updating an invalid resource set according to the obtained invalid resources;
when a newly added invalid resource exists in the invalid resource set, acquiring invalid resources in all child node resources of the newly added invalid resource and updating the invalid resource set according to the acquired invalid resources; when all father node resources of the ith child node resource of the newly added invalid resource belong to invalid resources, judging that the ith child node is an invalid resource;
and when the invalid resources do not exist in all the child node resources of the newly added invalid resources, taking all the invalid resources in the invalid resource set as the redundant resources.
12. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of determining redundant resources of any of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method for determining redundant resources according to any one of claims 1 to 10.
CN201711343797.5A 2017-12-14 2017-12-14 Method and device for determining redundant resources, terminal equipment and storage medium Active CN108089893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711343797.5A CN108089893B (en) 2017-12-14 2017-12-14 Method and device for determining redundant resources, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711343797.5A CN108089893B (en) 2017-12-14 2017-12-14 Method and device for determining redundant resources, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108089893A CN108089893A (en) 2018-05-29
CN108089893B true CN108089893B (en) 2021-03-16

Family

ID=62176221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711343797.5A Active CN108089893B (en) 2017-12-14 2017-12-14 Method and device for determining redundant resources, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108089893B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984207A (en) * 2018-06-14 2018-12-11 珠海金山网络游戏科技有限公司 A kind of method of installation kit invalid resource file detection
CN109344277B (en) * 2018-08-31 2020-10-20 网易传媒科技(北京)有限公司 Picture processing method, device, medium and computing equipment
CN109828777A (en) * 2018-12-06 2019-05-31 珠海西山居互动娱乐科技有限公司 A kind of hand trip installation kit optimization method and system
CN109634613A (en) * 2018-12-06 2019-04-16 珠海西山居互动娱乐科技有限公司 A kind of hand trip installation kit redundant resource inspection method and system
CN109614254A (en) * 2018-12-27 2019-04-12 迅雷计算机(深圳)有限公司 A kind of Dylib reference delet method and relevant apparatus
CN110147237B (en) * 2019-05-20 2023-08-08 深圳市腾讯网域计算机网络有限公司 Redundant resource removing method and device
CN110413282B (en) * 2019-08-01 2024-01-30 腾讯科技(深圳)有限公司 Redundant resource processing method, device, equipment and storage medium
CN110960858B (en) * 2019-12-23 2024-02-02 上海米哈游网络科技股份有限公司 Game resource processing method, device, equipment and storage medium
CN113051230A (en) * 2019-12-27 2021-06-29 福建省天奕网络科技有限公司 Method and storage medium for clearing UI picture resources by Laya project
CN113448932A (en) * 2020-03-25 2021-09-28 北京沃东天骏信息技术有限公司 Application program optimization method and device
CN112131211A (en) * 2020-09-15 2020-12-25 贝壳技术有限公司 Method, device and storage medium for clearing redundant service data
CN112379891B (en) * 2020-10-09 2023-12-29 广州博冠信息科技有限公司 Data processing method and device
CN112199093B (en) * 2020-10-15 2022-06-07 腾讯科技(深圳)有限公司 Resource checking method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826103A (en) * 2010-04-06 2010-09-08 山东高效能服务器和存储研究院 Method for reversely searching packet depended relationship in unix operating system
CN102411499A (en) * 2011-08-11 2012-04-11 浙江大学 Directed-graph-structure-based system information extraction method for single electronic control unit (ECU)
CN102622556A (en) * 2011-12-22 2012-08-01 南京邮电大学 Web service security analysis method based on program slicing technique
CN106599151A (en) * 2016-12-07 2017-04-26 Tcl集团股份有限公司 Method and system for parallel cleaning of Android engineering useless resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826103A (en) * 2010-04-06 2010-09-08 山东高效能服务器和存储研究院 Method for reversely searching packet depended relationship in unix operating system
CN102411499A (en) * 2011-08-11 2012-04-11 浙江大学 Directed-graph-structure-based system information extraction method for single electronic control unit (ECU)
CN102622556A (en) * 2011-12-22 2012-08-01 南京邮电大学 Web service security analysis method based on program slicing technique
CN106599151A (en) * 2016-12-07 2017-04-26 Tcl集团股份有限公司 Method and system for parallel cleaning of Android engineering useless resources

Also Published As

Publication number Publication date
CN108089893A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108089893B (en) Method and device for determining redundant resources, terminal equipment and storage medium
CN109086204B (en) Node relation tree establishing method, page marking method, page identifying method, page marking device, page identifying device and storage medium
CN109388566B (en) Code coverage rate analysis method, device, equipment and storage medium
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
KR20160073402A (en) Callpath finder
CN110647562B (en) Data query method and device, electronic equipment and storage medium
CN112817866A (en) Recording playback method, device, system, computer equipment and storage medium
CN111858607A (en) Data processing method and device, electronic equipment and computer readable medium
CN112988280B (en) Configuration data processing method and device
CN114282071A (en) Request processing method, device and equipment based on graph database and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN111176901B (en) HDFS deleted file recovery method, terminal device and storage medium
CN109582347B (en) Method and device for acquiring front-end codes
CN108804625B (en) LSM tree optimization method and device and computer equipment
US11392649B2 (en) Binding query scope to directory attributes
CN115757174A (en) Database difference detection method and device
CN106648550B (en) Method and device for concurrently executing tasks
CN114356404A (en) Interface document generating method, system and computer readable storage medium
CN113760237A (en) Compiling address updating method and device, terminal equipment and readable storage medium
CN110020348B (en) Early warning method and device for circled events
CN108073712B (en) Method and device for deleting main data in information system and computer equipment
CN111736848A (en) Packet conflict positioning method and device, electronic equipment and readable storage medium
CN113127572B (en) Archive merging method, device, equipment and computer readable storage medium
CN111078671A (en) Method, device, equipment and medium for modifying data table field
JP5953262B2 (en) DATA INDEX DEVICE, DATA INDEX METHOD, AND PROGRAM

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