CN106547593A - A kind of method and device of optimization application - Google Patents

A kind of method and device of optimization application Download PDF

Info

Publication number
CN106547593A
CN106547593A CN201610971174.1A CN201610971174A CN106547593A CN 106547593 A CN106547593 A CN 106547593A CN 201610971174 A CN201610971174 A CN 201610971174A CN 106547593 A CN106547593 A CN 106547593A
Authority
CN
China
Prior art keywords
space
geometric
solid
space geometric
dimensional information
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
CN201610971174.1A
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.)
Tide (suzhou) Financial Technology Service Co Ltd
Original Assignee
Tide (suzhou) Financial Technology Service 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 Tide (suzhou) Financial Technology Service Co Ltd filed Critical Tide (suzhou) Financial Technology Service Co Ltd
Priority to CN201610971174.1A priority Critical patent/CN106547593A/en
Publication of CN106547593A publication Critical patent/CN106547593A/en
Pending legal-status Critical Current

Links

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/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The invention provides a kind of method and device of optimization application, wherein, methods described includes:S0:Data space is set in the internal memory of terminal device in advance;S1:Application program to be optimized is loaded onto into the data space, with least two space geometric froms for the correspondence application program being formed in the data space;S2:At least two space geometric from the data space is parsed, is determined that each described space geometric from distinguishes corresponding dimensional information and ambient parameter, and is determined the interactive relationship between at least two space geometric from;S3:According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and ambient parameter, at least two space geometric from the data space is resequenced, and forms the destination application after optimization.By technical scheme, it is capable of achieving to reduce the development cost of software product.

Description

A kind of method and device of optimization application
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device of optimization application.
Background technology
With the continuous development of economic and technology, in order to meet all trades and professions it is quick and roll up it is information-based, automatic Change demand, no matter hardware product or the renewal iteration frequency of software product (i.e. application program) are high.
At present, for software product, mainly by agile development, and it is next to increase the mode of the method for employee work time Accelerate the development rate of product, so as to improve the iteration frequency of software product.Should for the iteration each time of software product Software product is correspondingly improved, segmental defect present in operation flow can be overcome.
But, due to the quickening of product development speed, the application program on a station terminal equipment is operated in by staff Design, produce to putting on market, and during frequent iteration being carried out to which, will put into a large amount of human costs and financial cost, The development cost of software product is caused significantly to rise.
The content of the invention
A kind of method and device of optimization application is embodiments provided, is capable of achieving to reduce opening for software product Send out cost.
In a first aspect, the invention provides a kind of method of optimization application, including:
S0:Data space is set in the internal memory of terminal device in advance;
S1:Application program to be optimized is loaded onto into the data space, so that correspondence institute is formed in the data space State at least two space geometric froms of application program;
S2:At least two space geometric from the data space is parsed, each described space geometry is determined Body distinguishes corresponding dimensional information and ambient parameter, and determines the interactive relationship between at least two space geometric from;
S3:According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment Parameter, resequences at least two space geometric from the data space, and forms the target after optimization Application program.
Preferably,
It is described according to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment Parameter, resequences at least two space geometric from the data space, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information, it is determined that passing through At least one the 3rd space geometric froms are formed between the first space geometric from of indirect interactive relationship and second space solid, are It is no to there may be direct interactive relationship, if it is, according to first space geometric from, the second space solid and Each described 3rd space geometric from distinguishes corresponding ambient parameter, movement first space geometric from, described second empty Between solid and/or at least one the 3rd space geometric from so that first space geometric from and the second space Solid is adjacent.
Preferably,
The destination application formed after optimizing, including:
Corresponding dimensional information is distinguished according to two neighboring first space geometric from and the second space solid And interactive relationship, Behavior Manager is set, and it is several to connect two neighboring first space by first Behavior Manager Second space solid described in He Tihe, to form the destination application after optimization;Wherein, the second space solid can The service request that first space geometric from is initiated is responded by the Behavior Manager.
Preferably, it is described according to the interactive relationship, and each described space geometric from distinguishes corresponding dimension letter Breath and ambient parameter, resequence at least two space geometric from the data space, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment ginseng Number, it is determined that in there are at least two first space geometric froms of interactive relationship with the second space solid, described in each First space geometric from respectively with the interactive coefficient between the second space solid;It is several according to each described first space What body and the second space solid distinguish corresponding ambient parameter, the movement second space solid and/or at least One first space geometric from so that the second space solid respectively with the first space geometric from each described it Between spacing, it is relative with the interactive coefficient each described between first space geometric from respectively with the second space solid Should.
Preferably,
The destination application formed after optimizing, including:
Corresponding dimension is distinguished according to the second space solid and each described first space geometric from Information and ambient parameter, update at least two first space geometric from so that described at least two first space geometries It is several that body shares the second space according to the spacing between current first space geometric from and the second space solid respectively He Ti, to form the destination application after optimization.
Preferably,
The type of the space geometric from includes:One or more in computing module, interface routine, system function;
And/or,
The type of the dimensional information includes:One or more in data resource and computing resource;
And/or,
The ambient parameter includes:Coordinate, by visitation frequency and by access object in one or more.
Second aspect, embodiments provides a kind of device of optimization application, including:
Setup module, for arranging data space in the internal memory of terminal device in advance;
Program insmods, for application program to be optimized is loaded onto the data space, with empty in the data Between in form at least two space geometric froms of the correspondence application program;
Parsing module, for parsing at least two space geometric from the data space, determines each institute State space geometric from and distinguish corresponding dimensional information and ambient parameter, and determine between at least two space geometric from Interactive relationship;
Optimization processing module, for according to the interactive relationship, and each described space geometric from difference is corresponding Dimensional information and ambient parameter, resequence at least two space geometric from the data space, and shape Into the destination application after optimization.
Preferably,
The optimization processing module, including:First Sport Administration unit and the first optimization processing unit;Wherein,
The first Sport Administration unit, for according to the interactive relationship, and each described space geometric from point Not corresponding dimensional information, it is determined that the first space geometry of indirect interactive relationship is formed by least one the 3rd space geometric froms Between body and second space solid, if there may be direct interactive relationship, if it is, according to first space geometry Body, the second space solid and each described 3rd space geometric from distinguish corresponding ambient parameter, mobile described First space geometric from, the second space solid and/or at least one the 3rd space geometric from, so that described first Space geometric from and the second space solid are adjacent;
The first optimization processing unit, for according to two neighboring first space geometric from and the second space Solid distinguishes corresponding dimensional information and interactive relationship, arranges Behavior Manager, and is connected by first Behavior Manager Two neighboring first space geometric from and the second space solid are connect, to form the destination application after optimization; Wherein, the business that the second space solid can respond the first space geometric from initiation by the Behavior Manager please Ask.
Preferably,
The optimization processing module, including:Second Sport Administration unit and the second optimization processing unit;Wherein,
The second Sport Administration unit, for according to the interactive relationship, and each described space geometric from point Not corresponding dimensional information and ambient parameter, it is determined that there are at least two first of interactive relationship with the second space solid In space geometric from, each described first space geometric from respectively with the interactive coefficient between the second space solid; Corresponding ambient parameter is distinguished according to each described first space geometric from and the second space solid, it is mobile described First space geometric from described in second space solid and/or at least one so that the second space solid respectively with often Spacing between one first space geometric from, with the second space solid respectively with the first space each described Interactive coefficient between solid is corresponding;
The optimization processing unit, for according to the second space solid and each described first space Solid distinguishes corresponding dimensional information and ambient parameter, updates at least two first space geometric from so that described At least two first space geometric froms are respectively according between current first space geometric from and the second space solid Away from the shared second space solid, to form the destination application after optimization.
Preferably,
The type of the space geometric from includes:One or more in computing module, interface routine, system function;
And/or,
The type of the dimensional information includes:One or more in data resource and computing resource;
And/or,
The ambient parameter includes:Coordinate, by visitation frequency and by access object in one or more.
A kind of method and device of optimization application is embodiments provided, in the method, by existing in advance Data space is built in the internal memory of terminal device, and application program to be optimized is loaded onto into data space with the data space It is interior formed to should application program multiple space geometric froms (interface routine and system function under the such as application program etc.), Then the multiple space geometric froms in data space are parsed, you can determine that each space geometric from difference is corresponding Dimensional information (i.e. the resource type of current spatial solid, such as, data resource and computing resource etc.), ambient parameter are (such as Coordinate and by visitation frequency etc.), and the interactive relationship between multiple space geometric froms, you can according to multiple space geometric froms Between interactive relationship, and each space geometric from distinguishes corresponding dimensional information and ambient parameter, in data space Multiple space geometric froms resequenced, and formed optimization after destination application;As fully visible, by setting in terminal Optimization application (i.e. software product) is treated in standby and makees further optimization, i.e., by the side of machine learning in terminal device The further optimization application of formula, can reduce the iteration frequency of application program, and then realize reducing the development cost of software product.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of the method for optimization application that one embodiment of the invention is provided;
Fig. 2 is the flow chart of the method for another kind of optimization application that one embodiment of the invention is provided;
Fig. 3 is a kind of structural representation of data space that one embodiment of the invention is provided;
Fig. 4 is the structural representation of another kind of data space that one embodiment of the invention is provided;
Fig. 5 is a kind of structural representation of the device of optimization application that one embodiment of the invention is provided;
Fig. 6 is the structural representation of the device of another kind of optimization application that one embodiment of the invention is provided.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, a kind of method of optimization application is embodiments provided, including:
S0:Data space is set in the internal memory of terminal device in advance;
S1:Application program to be optimized is loaded onto into the data space, so that correspondence institute is formed in the data space State at least two space geometric froms of application program;
S2:At least two space geometric from the data space is parsed, each described space geometry is determined Body distinguishes corresponding dimensional information and ambient parameter, and determines the interactive relationship between at least two space geometric from;
S3:According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment Parameter, resequences at least two space geometric from the data space, and forms the target after optimization Application program.
In the above embodiment of the present invention, by building data space in advance in the internal memory of terminal device, and will be to be optimized Application program be loaded onto data space with formed in the data space to should application program multiple space geometric froms (ratio Interface routine and system function such as under the application program etc.), then the multiple space geometric froms in data space are solved Analysis, you can determine each space geometric from distinguish corresponding dimensional information (i.e. the resource type of current spatial solid, than Such as, data resource and computing resource etc.), ambient parameter (such as coordinate and by visitation frequency etc.), and multiple space geometries Interactive relationship between body, you can according to the interactive relationship between multiple space geometric froms, and each space geometric from point Multiple space geometric froms in data space are resequenced, and form excellent by not corresponding dimensional information and ambient parameter Destination application after change;As fully visible, by treat in terminal device optimization application (i.e. software product) make into The optimization of one step, i.e., in terminal device by way of machine learning further optimization application, application program can be reduced The iteration frequency, and then realize reduce software product development cost.
It should be appreciated that terminal device can be personal computer, mobile phone etc., and the intelligent whole of application program can be run End.
Specifically, the type of the space geometric from is included but is not limited in computing module, interface routine, system function One or more;One or more in the type of the dimensional information including but not limited to data resource and computing resource; The ambient parameter include but is not limited to coordinate, by visitation frequency and by access object in one or more.
Further, in order to economize on resources, it is to avoid terminal device runs the redundant module in application program to be optimized, this It is in a bright preferred embodiment, described according to the interactive relationship, and each described space geometric from distinguishes corresponding dimension Degree information and ambient parameter, resequence at least two space geometric from the data space, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information, it is determined that passing through At least one the 3rd space geometric froms are formed between the first space geometric from of indirect interactive relationship and second space solid, are It is no to there may be direct interactive relationship, if it is, according to first space geometric from, the second space solid and Each described 3rd space geometric from distinguishes corresponding ambient parameter, movement first space geometric from, described second empty Between solid and/or at least one the 3rd space geometric from so that first space geometric from and the second space Solid is adjacent.
In the above-described embodiments, for example, to should need successively in an operation flow of application program to be optimized Business datum is provided by interface routine A, the business datum that interface routine A is provided is converted into computing module C energy by interface routine B Computing module C is supplied to after the form of enough identification, so that computing module C is calculated accordingly for the business datum of reception When, i.e. interface routine A the first space geometric froms of correspondence, interface routine B the 3rd space geometric froms of correspondence, computing module C correspondences the Two space geometric froms, the interactive pass existed between the first space geometric from, second space solid and the 3rd space geometric from It is to provide business datum to interface routine B for interface routine A, interface routine B forwards the business number of correspondence form to interface routine C Can be data resource according to, interface routine A and the corresponding dimensional informations of interface routine B, the corresponding dimensional informations of computing module C can With computing resource;As can be seen here, if the form of the business datum of interface routine A offers has been that computing module C is capable of identify that Form when, there is redundancy in interface routine B, and specification interface program A and computing module C there may be direct interactive relationship, that is, connect Mouth program A directly can provide business datum to interface routine C, meanwhile, when application program to be optimized is loaded to data space, Interface routine B between interface routine A and computing module C, now, then can be according to interface routine A, interface routine B and calculating Module C distinguishes corresponding ambient parameter (the such as coordinate of current interface program or computing module in data space), and movement connects Mouth program A, interface routine B and computing module C so that interface routine A is adjacent with computing module C.
Accordingly, it is after the position for space geometric from moves, when forming destination application, two neighboring There may be first space geometric from and second space solid of direct interactive relationship due to no longer needing between them The 3rd space geometric from carry out interaction, meanwhile, second space solid may simultaneously with multiple first space geometric froms There is interactive relationship, now, in order to realize that multiple first space geometric froms and the regular traffic of multiple second space solids are patrolled Volume, in a preferred embodiment of the invention, the destination application formed after optimizing, including:
Corresponding dimensional information is distinguished according to two neighboring first space geometric from and the second space solid And interactive relationship, Behavior Manager is set, and it is several to connect two neighboring first space by first Behavior Manager Second space solid described in He Tihe, to form the destination application after optimization;Wherein, the second space solid can The service request that first space geometric from is initiated is responded by the Behavior Manager.
In the above-described embodiments, for example, corresponding ambient parameter is distinguished according to each space geometric from and (is such as sat Mark), in determining multiple second space solids adjacent with first space geometric from, the first space geometric from includes connecing Mouth program A, second space solid include computing module C and computing module D, and interactive relationship provides corresponding lattice for interface routine A The business datum of formula or type is calculated accordingly to computing module C or computing module D, i.e. the corresponding dimensions of interface routine A Information is data resource, and interface routine C and interface routine D possesses the ability of the business datum for processing different-format or type, i.e., Corresponding dimensional information is computing resource respectively for interface routine C and interface routine D, now, then can arrange corresponding behavior pipe Reason device, connecting interface program A, computing module C and computing module D so that the Behavior Manager of setting can be carried according to interface routine A For business datum form, business datum is forwarded to into computing module C or the calculating of the business datum that can process the form Module D so that corresponding interface routine is calculated accordingly for the business datum of the form, i.e., so that interface routine C or Interface routine D can pass through the service request that Behavior Manager response interface program A is initiated for arranging.
Further, when same resource is by multiple access object-sharings, in order to ensure multiple access objects can be visited Same resource is asked, it is in a preferred embodiment of the invention, described according to the interactive relationship, and each described space is several What body distinguishes corresponding dimensional information and ambient parameter, and at least two space geometric from the data space is carried out Rearrangement, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment ginseng Number, it is determined that in there are at least two first space geometric froms of interactive relationship with the second space solid, described in each First space geometric from respectively with the interactive coefficient between the second space solid;It is several according to each described first space What body and the second space solid distinguish corresponding ambient parameter, the movement second space solid and/or at least One first space geometric from so that the second space solid respectively with the first space geometric from each described it Between spacing, it is relative with the interactive coefficient each described between first space geometric from respectively with the second space solid Should.
Accordingly, in a preferred embodiment of the invention, the destination application formed after optimizing, including:According to The second space solid and each described first space geometric from distinguish corresponding dimensional information and ambient parameter, Update described at least two first space geometric froms so that described at least two first space geometric froms are respectively according to current first Spacing between space geometric from and the second space solid shares the second space solid, to be formed after optimization Destination application.
In the above two embodiments, for example, corresponding ambient parameter is distinguished according to each space geometric from and (is sat Mark) determine with current second space solid be corresponding dimensional information for computing resource computing module C, adjacent two the One space geometric from respectively interface routine A and interface routine E of the correspondence dimensional information for data resource, interactive relationship is interface Program A and interface routine E can provide business datum respectively and give computing module C, i.e., can provide business datum interface routine A and Interface routine E may have access to computing module C, in the ambient parameter (such as by visitation frequency and coordinate) according to computing module C, interface Program A and interface routine E distinguish corresponding ambient parameter (such as, accessing the frequency and coordinate of computing module C) and determine calculating Module C is respectively between interface routine A and interface routine E after corresponding interactive coefficient, you can counted according to the movement of interactive coefficient Module C, interface routine A and interface routine E are calculated, so that between computing module C is between interface routine A and interface routine E It is corresponding away from coefficient is interacted therewith;Such as, computing module C it is corresponding by visitation frequency be 60 times/second, interface routine A access meter Calculate module C the frequency be 50 times/second, interface routine E access computing module C the frequency be 25 times/second, it is seen then that interface routine A and It is 2 that interface routine E distinguishes corresponding frequency ratio:1, now, then can be corresponding by visitation frequency according to computing module C, it is determined that connecing The corresponding interactive coefficient between computing module C is 40 times/second and 20 times/second respectively for mouth program A and interface routine E;Now, root Distinguish the mobile interface routine A of corresponding ambient parameter (such as coordinate), connect according to interface routine A, interface routine E and computing module C Mouthful program E and computing module C so that interface routine A and interface routine E are 40 lists with the spacing between computing module C respectively Bit length and 20 unit lengths.
It should be appreciated that in mobile interface routine A, interface routine E and computing module C, it is only necessary to guarantee interface journey Sequence A and interface routine E respectively with the ratio of the spacing between computing module C and interface routine A and interface routine E respectively with calculating Between module C, the corresponding frequency is than identical.
Thus, when the destination application after optimizing is formed, then can be according to interface routine A in data space and interface journey Sequence E respectively with the spacing between computing module C, update interface routine A and interface routine E so that interface routine A was at 1 second It is only capable of accessing computing module C40 time in unit interval, interface routine E is only capable of access computing module within the unit interval of 1 second C20 time so that visitation frequency is received in 60 times of the shared computing module C of interface routine A and interface routine E.
As shown in Fig. 2 the method for embodiments providing another kind of optimization application, please also refer to such as figure 3 and data space as shown in Figure 4, realize including data resource for correspondence dimensional information in software under testing in data space As a example by being optimized with the part of interface program of computing resource, the method can include following each step:
Step 201, builds data space in the internal memory of personal computer.
Software to be optimized is loaded onto data space by step 202, to be formed in data space to should software under testing At least two space geometric froms.
Refer to Fig. 3, at least two space geometric froms of the embodiment of the present invention to be formed in the data space shown in Fig. 3 Including:As a example by A, B, C, D, E.
Step 203, analytic space solid A, B, C, D, E, to determine that space geometric from A, B, C, D, E distinguish corresponding dimension Degree information and ambient parameter, and determine the interactive relationship between space geometric from A, B, C, D, E.
In the embodiment of the present invention, after parsing to space geometric from A, B, C, D, E, space geometric from A and E are determined The interface routine of business datum, format conversion modules of the space geometric from B for the form of transformation service data, space are provided respectively As a example by solid C and D are respectively computing module, accordingly, first aspect, it may be determined that interface routine A and interface routine E are right respectively The dimensional information answered is computing resource, and format conversion module B is that the regular resource, computing module C and computing module D of limiting is respectively Computing resource;Second aspect, it may be determined that the interactive relationship between space geometric from A, B, C, D, E is that interface routine A provides first The business datum of the first specified format can be converted into the second lattice by the business datum of form or the second form, format conversion module B Computing module C is transmitted to after formula, computing module C can calculate the business datum of the second form, and computing module D can calculate first The business datum of form;The third aspect, it may be determined that the ambient parameter for going out data space inner joint program A includes:Correspondence calculates mould It is [5.0.5] that the visitation frequency of block C is 50 times/second, coordinate, and the ambient parameter of interface routine E includes:Correspondence computing module C's Visitation frequency is 25 times/second, coordinate is [10.0.10];It is that 60 times/second, coordinate are by visitation frequency that computing module C is corresponding [10.0.5];The corresponding ambient parameters of computing module D include:Coordinate is [5.0.10].
It should be appreciated that space geometric from can also be business datum under application program to be optimized, system function etc., Here, only with correspondence dimensional information as computing resource, rule limit interface routine, the format conversion module of resource and data resource And computing module citing;Meanwhile, the type of dimensional information, each space geometric from distinguish corresponding ambient parameter and interactive pass System is also only PART in embodiments of the present invention, can also include other types and interactive pass in practical business scene System.
Step 204, according to interactive relationship, and space geometric from A, B, C, D, E distinguish corresponding dimensional information and environment Parameter, mobile space solid B and space geometric from C so that space geometric from A is adjacent with space geometric from C.
Here, as interface routine A itself can directly provide the business datum of the second form, and computing module C can be with Calculate the business datum of the second form, it is seen then that when interface routine A directly provides the business datum of the second form, format conversion Module B occurs redundancy, therefore, here can be in mobile computing module C in data space and format conversion module B, so as to calculate Module C is adjacent with interface routine A.
Specifically, in the embodiment of the present invention, with reference to Fig. 4, format conversion module B in data space can be directly deleted, and Computing module C is moved to from coordinate [5.0.5] from its coordinate [10.0.5];Thus, being capable of achieving to economize on resources, it is to avoid terminal sets Redundant module in received shipment row application program.
Step 205, according to the corresponding interactive relationship of space geometric from A, C, E, and its corresponding dimensional information of difference and Ambient parameter, it is determined that in there is the A and E of interactive relationship with C, A and E corresponding interactive coefficients between C.
In the embodiment of the present invention, can be according to the visitation frequency of interface routine A correspondence computing module C, interface routine E to accrued The visitation frequency and computing module C for calculating module C is determined interface routine A and the interface routine E respectively at calculating by visitation frequency Corresponding interactive coefficient between module C;Specifically, computing module C it is corresponding by visitation frequency be 60 times/second, interface routine A visit Ask computing module C the frequency be 50 times/second, interface routine E access computing module C the frequency be 25 times/second, it is seen then that interface journey It is 2 that sequence A and interface routine E distinguish corresponding frequency ratio:1, now, then can be corresponding by visitation frequency 60 according to computing module C Secondary/second, determine that the corresponding interactive coefficient between computing module C is 40 times/second and 20 respectively for interface routine A and interface routine E Secondary/second.
Step 206, distinguishes corresponding ambient parameter, mobile A, C, E according to space geometric from A, C, E so that A and E and C it Between spacing, distinguish corresponding interactive coefficient with which corresponding.
It should be appreciated that in step 204 after mobile computing module C, in the corresponding ambient parameters of computing module C, Its coordinate is then [10.0.5].
In the embodiment of the present invention, interface routine A and interface routine E can be moved respectively so that interface routine A distances calculate mould The distance between block C is 40 unit lengths, and causes the distance between interface routine E distance calculation modules C to be 20 lists Bit length.
Certainly, in mobile interface routine A, interface routine E and computing module C, it is only necessary to guarantee interface routine A and interface Program E is respectively with the ratio and interface routine A and interface routine E of the spacing between computing module C respectively between computing module C The corresponding frequency than identical, such as with 10:In 1 scale smaller data space interface routine A and interface routine E respectively at Spacing between computing module C, now, with reference to Fig. 4, it is only necessary to which interface routine E is moved to into coordinate from its coordinate [10.0.10]Place.
Step 207, distinguishes corresponding dimensional information and interactive relationship according to space geometric from A, C, D, arranges behavior management Device P.
In the embodiment of the present invention, corresponding dimensional information is computing resource to interface routine C and interface routine D respectively, and Possesses the ability of the business datum for processing different-format respectively, i.e. interface routine C and interface routine D distinguishes corresponding dimensional information Computing resource is, the corresponding dimensional informations of interface routine A are data resource, now, then can arrange corresponding Behavior Manager, Connecting interface program A, computing module C and computing module D so that what the Behavior Manager P of setting can be provided according to interface routine A The business datum of the first form is forwarded to computing module D, and the business datum of the second form is forwarded by the form of business datum To computing module C, so that corresponding interface routine is calculated accordingly for the business datum of correspondence form, i.e., so that interface Program C or interface routine D can pass through the service request that Behavior Manager response interface program A is initiated for arranging.
Step 208, according to space geometric from A and E respectively the distance between with space geometric from C, and space geometric from A, C, E distinguish corresponding dimensional information and ambient parameter, update space geometric from A and E, to form the intended application after optimization Program.
In the embodiment of the present invention, according to the spacing of interface routine A and interface routine C between computing module C, docking Mouth program A and interface routine E are updated accordingly, and such as, the spacing between interface routine A and computing module C is 4 lists During bit length, because unit length is 10 with the relation of visitation frequency:1, therefore, the interface routine A after correspondingly can updating was at 1 second Unit interval in be only capable of accessing computing module C40 time, the unit length between interface routine E and computing module C for 2 when, together When, the interface routine E after correspondence updates was only capable of accessing computing module C20 time within the unit interval of 1 second so that interface routine Visitation frequency is received in 60 times/second of the shared computing module C of A and interface routine E.
It can be seen that, when the embodiment of the present invention may be implemented in same resource by multiple access object-sharings, it can be ensured that Duo Gefang Ask that object can access same resource.
By above-mentioned each step of the embodiment of the present invention, you can realize by way of machine learning, in terminal device In further optimized for application program to be optimized, can reduce the iteration frequency of application program, and then realize reducing software The development cost of product.
As shown in figure 5, the embodiment of the present invention provides a kind of device of optimization application, including:
Setup module 501, for arranging data space in the internal memory of terminal device in advance;
Program insmods 502, for application program to be optimized is loaded onto the data space, with the data At least two space geometric froms of the correspondence application program are formed in space;
Parsing module 503, for parsing at least two space geometric from the data space, determines each The space geometric from distinguishes corresponding dimensional information and ambient parameter, and determines between at least two space geometric from Interactive relationship;
Optimization processing module 504, for according to the interactive relationship, and each described space geometric from is corresponded to respectively Dimensional information and ambient parameter, at least two space geometric from the data space is resequenced, and Form the destination application after optimization.
Further, in order to economize on resources, it is to avoid terminal device runs the redundant module in application program to be optimized, such as schemes Shown in 6, in a preferred embodiment of the invention, the optimization processing module 504, including:First Sport Administration unit, 5041 He First optimization processing unit 5042;Wherein,
The first Sport Administration unit 5041, for according to the interactive relationship, and each described space geometry Body distinguishes corresponding dimensional information, it is determined that the first space of indirect interactive relationship is formed by least one the 3rd space geometric froms Between solid and second space solid, if there may be direct interactive relationship, if it is, according to first space Solid, the second space solid and each described 3rd space geometric from distinguish corresponding ambient parameter, mobile First space geometric from, the second space solid and/or at least one the 3rd space geometric from, so that described First space geometric from and the second space solid are adjacent;
The first optimization processing unit 5042, for according to two neighboring first space geometric from and described second Space geometric from distinguishes corresponding dimensional information and interactive relationship, arranges Behavior Manager, and passes through first behavior management Device connects two neighboring first space geometric from and the second space solid, to form the intended application journey after optimization Sequence;Wherein, the second space solid can respond the industry that first space geometric from is initiated by the Behavior Manager Business request.
Further, when same resource is by multiple access object-sharings, in order to ensure multiple access objects can be visited Same resource is asked, as shown in fig. 6, in a preferred embodiment of the invention, the optimization processing module 504, including:Second fortune Dynamic administrative unit 5043 and the second optimization processing unit 5044;Wherein,
The second Sport Administration unit 5043, for according to the interactive relationship, and each described space geometry Body distinguishes corresponding dimensional information and ambient parameter, it is determined that having at least two of interactive relationship with the second space solid In first space geometric from, each described first space geometric from interactive system respectively between the second space solid Number;Corresponding ambient parameter is distinguished according to each described first space geometric from and the second space solid, it is mobile First space geometric from described in the second space solid and/or at least one so that the second space solid difference With the spacing each described between first space geometric from, with the second space solid respectively with each described first Interactive coefficient between space geometric from is corresponding;
The optimization processing unit 5044, for according to the second space solid and each described first Space geometric from distinguishes corresponding dimensional information and ambient parameter, updates at least two first space geometric from so that Described at least two first space geometric froms are respectively according between current first space geometric from and the second space solid Spacing share the second space solid, with formed optimization after destination application.
In a preferred embodiment of the invention, the type of the space geometric from includes:Computing module, interface routine, it is One or more in system function;
And/or,
The type of the dimensional information includes:One or more in data resource and computing resource;
And/or,
The ambient parameter includes:Coordinate, by visitation frequency and by access object in one or more
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In sum, each embodiment of the invention at least has the advantages that:
1st, in one embodiment of the invention, by building data space in advance in the internal memory of terminal device, and will be to be optimized Application program be loaded onto data space with formed in the data space to should application program multiple space geometric froms (ratio Interface routine and system function such as under the application program etc.), then the multiple space geometric froms in data space are solved Analysis, you can determine each space geometric from distinguish corresponding dimensional information (i.e. the resource type of current spatial solid, than Such as, data resource and computing resource etc.), ambient parameter (such as coordinate and by visitation frequency etc.), and multiple space geometries Interactive relationship between body, you can according to the interactive relationship between multiple space geometric froms, and each space geometric from point Multiple space geometric froms in data space are resequenced, and form excellent by not corresponding dimensional information and ambient parameter Destination application after change;As fully visible, by treat in terminal device optimization application (i.e. software product) make into The optimization of one step, i.e., in terminal device by way of machine learning further optimization application, application program can be reduced The iteration frequency, and then realize reduce software product development cost.
2nd, in one embodiment of the invention, the redundant module to being loaded onto in data space by way of machine learning is carried out Mobile or deletion, can avoid the redundant module in terminal device operation application program, realize economizing on resources.
3rd, in one embodiment of the invention, by way of machine learning, in same shared resource by multiple user objects When shared, the multiple user objects to being able to access that same shared resource carry out self refresh, it is ensured that the equal energy of multiple user objects Access same shared resource, it is to avoid because one of object because to should shared resource visitation frequency it is too high cause correspondence The relatively low user object of visitation frequency can not access same shared resource.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is made a distinction with another entity or operation, and not necessarily require or imply presence between these entities or operation Any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to non- Exclusiveness is included, so that a series of process, method, article or equipment including key elements not only includes those key elements, But also including other key elements being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element for being limited by sentence " including a 〃 ", does not arrange Except also there is other identical factor in including the process of the key element, method, article or equipment.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of method of optimization application, it is characterised in that include:
Data space is set in the internal memory of terminal device in advance;Also include:
Application program to be optimized is loaded onto into the data space, so that the correspondence application journey is formed in the data space At least two space geometric froms of sequence;
At least two space geometric from the data space is parsed, determines that each described space geometric from is right respectively The dimensional information answered and ambient parameter, and determine the interactive relationship between at least two space geometric from;
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and ambient parameter, right At least two space geometric from the data space is resequenced, and forms the intended application journey after optimization Sequence.
2. application program optimization method according to claim 1, it is characterised in that
It is described according to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and environment ginseng Number, resequences at least two space geometric from the data space, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information, it is determined that by least One the 3rd space geometric from is formed between the first space geometric from of indirect interactive relationship and second space solid, if can There is direct interactive relationship, if it is, according to first space geometric from, the second space solid and each Individual 3rd space geometric from distinguishes corresponding ambient parameter, and movement first space geometric from, the second space are several What body and/or at least one the 3rd space geometric from, so that first space geometric from and the second space geometry Body phase is adjacent.
3. application program optimization method according to claim 2, it is characterised in that
The destination application formed after optimizing, including:
Corresponding dimensional information and mutually is distinguished according to two neighboring first space geometric from and the second space solid Dynamic relation and interactive relationship, arrange Behavior Manager, and by first Behavior Manager connection two neighboring described first Space geometric from and the second space solid, to form the destination application after optimization;Wherein, the second space is several He Tike responds the service request that first space geometric from is initiated by the Behavior Manager.
4. application program optimization method according to claim 1, it is characterised in that described according to the interactive relationship, with And each described space geometric from distinguishes corresponding dimensional information and ambient parameter, to described in the data space at least Two spaces solid is resequenced, including:
According to the interactive relationship, and each described space geometric from distinguishes corresponding dimensional information and ambient parameter, really In fixed at least two first space geometric froms that there is interactive relationship with the second space solid, each is described first empty Between solid respectively with the interactive coefficient between the second space solid;According to each described first space geometric from And the second space solid distinguishes corresponding ambient parameter, the movement second space solid and/or at least one institute State the first space geometric from so that the second space solid respectively with each described between first space geometric between Away from corresponding with the interactive coefficient each described between first space geometric from respectively with the second space solid.
5. method according to claim 4, it is characterised in that
The destination application formed after optimizing, including:
Corresponding dimensional information is distinguished according to the second space solid and each described first space geometric from And ambient parameter, update at least two first space geometric from so that described at least two first space geometric froms point The second space solid is not shared according to the spacing between current first space geometric from and the second space solid, To form the destination application after optimization.
6. according to arbitrary described method in claim 1 to 5, it is characterised in that
The type of the space geometric from includes:One or more in computing module, interface routine, system function;
And/or,
The type of the dimensional information includes:One or more in data resource and computing resource;
And/or,
The ambient parameter includes:Coordinate, by visitation frequency and by access object in one or more.
7. a kind of device of optimization application, it is characterised in that include:
Setup module, for arranging data space in the internal memory of terminal device in advance;
Program insmods, for application program to be optimized is loaded onto the data space, with the data space Form at least two space geometric froms of the correspondence application program;
Parsing module, for parsing at least two space geometric from the data space, determines each described sky Between solid distinguish corresponding dimensional information and ambient parameter, and determine the interaction between at least two space geometric from Relation;
Optimization processing module, for according to the interactive relationship, and each described space geometric from distinguishes corresponding dimension Information and ambient parameter, resequence at least two space geometric from the data space, and form excellent Destination application after change.
8. device according to claim 7, it is characterised in that
The optimization processing module, including:First Sport Administration unit and the first optimization processing unit;Wherein,
The first Sport Administration unit, for according to the interactive relationship, and each described space geometric from is right respectively The dimensional information answered, it is determined that by least one the 3rd space geometric froms formed indirect interactive relationship the first space geometric from and Between second space solid, if there may be direct interactive relationship, if it is, according to first space geometric from, The second space solid and each described 3rd space geometric from distinguish corresponding ambient parameter, movement described first Space geometric from, the second space solid and/or at least one the 3rd space geometric from, so that first space Solid and the second space solid are adjacent;
The first optimization processing unit, for according to two neighboring first space geometric from and the second space geometry Body distinguishes corresponding dimensional information and interactive relationship, arranges Behavior Manager, and connects phase by first Behavior Manager Adjacent two first space geometric froms and the second space solid, to form the destination application after optimization;Wherein, The second space solid can respond the service request that first space geometric from is initiated by the Behavior Manager.
9. device according to claim 7, it is characterised in that
The optimization processing module, including:Second Sport Administration unit and the second optimization processing unit;Wherein,
The second Sport Administration unit, for according to the interactive relationship, and each described space geometric from is right respectively The dimensional information answered and ambient parameter, it is determined that there are at least two first spaces of interactive relationship with the second space solid In solid, each described first space geometric from respectively with the interactive coefficient between the second space solid;According to Each described first space geometric from and the second space solid distinguish corresponding ambient parameter, movement described second First space geometric from described in space geometric from and/or at least one so that the second space solid respectively with each Spacing between first space geometric from, with the second space solid respectively with the first space geometry each described Interactive coefficient between body is corresponding;
The optimization processing unit, for according to the second space solid and each described first space geometry Body distinguishes corresponding dimensional information and ambient parameter, updates at least two first space geometric from so that it is described at least Two the first space geometric froms are common according to the spacing between current first space geometric from and the second space solid respectively The second space solid is enjoyed, to form the destination application after optimization.
10. according to arbitrary described device in claim 7 to 9, it is characterised in that
The type of the space geometric from includes:One or more in computing module, interface routine, system function;
And/or,
The type of the dimensional information includes:One or more in data resource and computing resource;
And/or,
The ambient parameter includes:Coordinate, by visitation frequency and by access object in one or more.
CN201610971174.1A 2016-11-03 2016-11-03 A kind of method and device of optimization application Pending CN106547593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610971174.1A CN106547593A (en) 2016-11-03 2016-11-03 A kind of method and device of optimization application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610971174.1A CN106547593A (en) 2016-11-03 2016-11-03 A kind of method and device of optimization application

Publications (1)

Publication Number Publication Date
CN106547593A true CN106547593A (en) 2017-03-29

Family

ID=58395435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610971174.1A Pending CN106547593A (en) 2016-11-03 2016-11-03 A kind of method and device of optimization application

Country Status (1)

Country Link
CN (1) CN106547593A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189478A (en) * 2018-08-27 2019-01-11 中国科学院计算技术研究所 For the feedback optimized method of application program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202269A (en) * 2014-09-26 2014-12-10 浪潮软件集团有限公司 Compression method of network data packet
US20150235282A1 (en) * 2014-02-18 2015-08-20 Purushotham Kamath Method and system to share, interconnect and execute components and compute rewards to contributors for the collaborative solution of computational problems.
CN105786512A (en) * 2016-02-29 2016-07-20 浪潮(苏州)金融技术服务有限公司 Program generation method and dimension manager

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150235282A1 (en) * 2014-02-18 2015-08-20 Purushotham Kamath Method and system to share, interconnect and execute components and compute rewards to contributors for the collaborative solution of computational problems.
CN104202269A (en) * 2014-09-26 2014-12-10 浪潮软件集团有限公司 Compression method of network data packet
CN105786512A (en) * 2016-02-29 2016-07-20 浪潮(苏州)金融技术服务有限公司 Program generation method and dimension manager

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189478A (en) * 2018-08-27 2019-01-11 中国科学院计算技术研究所 For the feedback optimized method of application program
CN109189478B (en) * 2018-08-27 2020-12-29 中国科学院计算技术研究所 Feedback optimization method for application program

Similar Documents

Publication Publication Date Title
CN108303098B (en) Robot path planning method and equipment
CN109218352A (en) The common recognition confirmation method and device of Transaction Information in a kind of block chain network
CN107341598B (en) Semantic and geometric calculation combined complex building specification conformance detection device and method
JP7417745B2 (en) Methods, devices, computing devices, logistics systems and storage media for detecting parcels
CN107016031A (en) A kind of data center's middleware system
US20230152121A1 (en) Indoor map generation method and apparatus
CN111737364B (en) Safe multi-party data fusion and federal sharing method, device, equipment and medium
CN113032862B (en) Building information model checking method and device and terminal equipment
CN106294611A (en) Core banking system and the old and new's core system data exchange method
WO2022193872A1 (en) Method and apparatus for determining spatial relationship, computer device, and storage medium
CN106547593A (en) A kind of method and device of optimization application
CN105138875A (en) Identification method and device for user information
WO2017107866A1 (en) Image retrieval server and system, related retrieval and troubleshooting method
CN111784453B (en) Cross-platform medicine collection price synchronization method based on block chain and related device
CN109582735A (en) A kind of block chain blocks of knowledge storage system
CN103167032B (en) The indoor positioning background service system of map auxiliary
CN116305420B (en) Highway maintenance digital twin body construction method, system, equipment and medium
CN115544634B (en) Oil and gas field level digital twin model space coordinate transformation method and system
CN106302778A (en) A kind of distributed flow process automotive engine system
CN107578114A (en) It is a kind of to judge method and device of the Public Transport Transfer to validity
CN103366325A (en) Supervision method and device in patrol area
CN110472143A (en) A kind of information-pushing method, device, readable storage medium storing program for executing and terminal device
CN115326066A (en) High-precision positioning method and system for high-speed train
CN117195441A (en) Method and related device for generating intersection surface
CN104850621A (en) Road-network model automatic generation method

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
CB02 Change of applicant information

Address after: Wusong Industrial Park, Wuzhong Development District of Suzhou City, Jiangsu province 215100 Wusong Road No. 818

Applicant after: Tide Financial Information Technology Co Ltd

Address before: Wuzhong Economic Development Zone in Suzhou City, Jiangsu Province, the River Street 215104 tower rhyme Road No. 178 Building 2 layer 1

Applicant before: Tide (Suzhou) Financial Technology Service Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170329

RJ01 Rejection of invention patent application after publication