CN106874025A - A kind of method and device for determining installation kit size - Google Patents

A kind of method and device for determining installation kit size Download PDF

Info

Publication number
CN106874025A
CN106874025A CN201610671017.9A CN201610671017A CN106874025A CN 106874025 A CN106874025 A CN 106874025A CN 201610671017 A CN201610671017 A CN 201610671017A CN 106874025 A CN106874025 A CN 106874025A
Authority
CN
China
Prior art keywords
line
size
data
bag
under
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.)
Granted
Application number
CN201610671017.9A
Other languages
Chinese (zh)
Other versions
CN106874025B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610671017.9A priority Critical patent/CN106874025B/en
Publication of CN106874025A publication Critical patent/CN106874025A/en
Application granted granted Critical
Publication of CN106874025B publication Critical patent/CN106874025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

This application discloses a kind of method and device for determining installation kit size, terminal or server can determine to update the size of bag in outlet according to the size of all types of data included in installation kit on installation kit under line and line in the method.Because terminal or server not merely determine to update the size of bag on line with the size of a part of data in installation kit on line, and then by the size of all types of data in installation kit under installation kit on line and line, the size that bag is updated on line is determined comprehensively, and, terminal or server are it is determined that all types of data determined during renewal bag size on line are free from what is occured simultaneously in the embodiment of the present application, avoiding problems the situation generation for causing the size that bag is updated on the line determined deviation occur because occurring occuring simultaneously between all types of data, in terms of existing technologies, can accurately determine to be updated in outlet the size of bag, adjusted to software developer and offered convenience during updating bag under the corresponding line of renewal bag on the line.

Description

A kind of method and device for determining installation kit size
Technical field
The application is related to field of computer technology, more particularly to a kind of method and device for determining installation kit size.
Background technology
With developing rapidly for computer technology and intelligent terminal technology, the use of intelligent terminal is in the day of people Often popularized in life and come, people have gradually broken away from the tradition side that can only realize operating various clients on desktop computer Formula, can operate various applications (Application, App), to meet oneself on the intelligent terminal oneself held whenever and wherever possible Life requirement.
In actual applications, software developer is generally needed for different operating system (for example, some systems are 32 , some systems are 64) corresponding App is developed, and under normal circumstances, line upper mounting plate requires that software developer will The data suitable for different system for same App exploitations are encapsulated in same installation kit, then upload to line upper mounting plate, and Because line upper mounting plate can be by the installation kit of software developer's upload by providing a user with download service again after certain treatment, institute So that for same App, the installation kit that software developer is uploaded on line upper mounting plate is finally provided a user with line upper mounting plate The installation kit of download is often in size different, and the App that software developer it is generally desirable to oneself be developed is including While various functions, moreover it is possible to the memory space of as far as possible low occupancy user terminal, so, software developer is each by what is developed Before the installation kit of App is issued on online upper mounting plate, generally it is required for determining updating the line after bag is actually reached the standard grade under the line of each App Upper renewal bag size, and according to the size for estimating, the size to updating bag under the line is adjusted, for example, working as software development When business determines that the size that bag is updated on the line of a certain App is excessive, then some included during renewal under the line can be wrapped are invalid, superfluous Remaining data are deleted, with this reach reduce the line under update bag size purpose, wherein, referred to herein as line on update bag For being directed to installation kit on the line issued on the online upper mounting plates of the App before updating software developer, and updated on Bao Wei on line It is referred to as updating bag under line before line, installation kit under line is then referred to as before installation kit is not reached the standard grade on line.
In actual applications, software developer would generally be according to installation kit on the line of the App issued on line upper mounting plate In data the size of bag is updated on the line to estimate.Specifically, because the installation kit of the different editions for same App is in number According to upper generally all with certain contact, therefore, when software developer determines to be updated on the line size of bag, generally all can be from line Upper mounting plate obtains installation kit on line, and a system specified is chosen comprising the data of multiple systems are related in installation kit on the line As the standard of calculating, determine that the data involved by the appointing system account for the ratio of installation kit total size on the line, then, software Developer can determine according to the size of the data involved by the appointing system included in renewal bag under the ratio, and line The size of bag is updated on line.
For example, it is assumed that software developer update the size for wrapping A5 on line after bag A4 reaches the standard grade it needs to be determined that being updated under outlet, it is soft Part developer can obtain from line upper mounting plate and updated on line installation kit A3 on the bag A5 lines to be updated, and determine peace on the line It is applied to 64 sizes of the data of system in dress bag A3.Because software developer obtains installation kit A3 on the line from line upper mounting plate When the data that can be provided according to line upper mounting plate determine the total size of installation kit A3 on the line, therefore, software developer is follow-up Can be by being applied to installation kit A3 on the size of 64 data of system and the line in installation kit A3 on the line determined Total size, calculates the size on the line in installation kit A3 suitable for 64 data of system and accounts for installation kit A3 total sizes on the line Ratio.Then, software developer be applied to 64 numbers of system in bag A4 by that can be updated under the ratio and line determined According to size, estimate the size for updating under the line and updating bag A5 after bag A4 reaches the standard grade on line.
Although being updated under the line that the above method can be estimated and wrapping the size after line, due to pacifying under normal circumstances In dress bag in addition to including suitable for 64 data of system, also include the number suitable for other systems (such as 32 systems) According to, and there is a part of shared data (each system has certain common factor in data) toward contact between each system, also It is to say, the installation kit that the installation kit do not reached the standard grade either has still been reached the standard grade, its size is not the number of simple each system According to plus with, therefore, the aforementioned proportion calculated by prior art is actually inaccurate, accordingly, subsequent software developer The size that bag is updated on the line determined according to the ratio also should be inaccurate, and this is just follow-up according to really to software developer The size of bag is updated on the line made adjust update under line bag during bring difficulty.
The content of the invention
The embodiment of the present application provides a kind of method for determining installation kit size, for solving to pacify by line in the prior art The inaccurate problem of the size of bag is updated on the line that dress bag is determined.
The embodiment of the present application provides a kind of device for determining installation kit size, for solving to pacify by line in the prior art The inaccurate problem of the size of bag is updated on the line that dress bag is determined.
The embodiment of the present application uses following technical proposals:
The embodiment of the present application provides a kind of method for determining installation kit size, including:
Obtain on line on installation kit and the line installation kit under the corresponding line of installation kit;
According to the size of all types of data included in installation kit under installation kit on the line and line, each estimation is determined The factor, wherein, each data is pertaining only to a type;
Determine to update under line the size of all types of data included in bag;
According under the line determined update bag in all types of data size and respectively estimate the factor, it is determined that described The size that bag is updated on the corresponding line of bag is updated under line.
The embodiment of the present application provides a kind of device for determining installation kit size, including:
Acquisition module, obtains on line on installation kit and the line installation kit under the corresponding line of installation kit;
Certainty factor module, according to the big of all types of data included in installation kit under installation kit on the line and line It is small, each estimation factor is determined, wherein, each data is pertaining only to a type;
First determining module, determines to update the size of all types of data included in bag under line;
Second determining module, size and each estimation according to all types of data updated under the line determined in bag The factor, determines to update the size for updating bag on the corresponding line of bag under the line.
Above-mentioned at least one technical scheme that the embodiment of the present application is used can reach following beneficial effect:
Because in the embodiment of the present application, software developer can be got to be released to line upper mounting plate by terminal or server On line under update corresponding to bag line under installation kit on installation kit and line, and by being installed on installation kit under line and line The size of all types of data of the non-overlapping copies included in bag is determined to determine on the line for updating under the line corresponding to bag Update the size of bag.Because terminal or server are more than only determining line with the size of a part of data in installation kit on line It is upper update bag size, and then all types of data by being included in installation kit under installation kit on line and line size, comprehensively Size to updating bag on line is determined, also, it is different to there is certain common factor in data from each system in the prior art, Terminal or server are it is determined that all types of data determined during renewal bag size on line are in the embodiment of the present application Do not contain common factor, i.e. each data only corresponds to a type, so avoid because of appearance common factor between all types of data The situation for causing the size that bag is updated on the line finally determined relatively large deviation occur occurs, so, in general, relative to existing Have for technology, can accurately determine to update the size of bag in outlet by the above method, and then to software developer by true The size of bag is updated on the line made adjust update under line bag size during offer convenience.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
The process of the determination installation kit size that Fig. 1 is provided for the embodiment of the present application;
Fig. 2 provides the detailed maps that bag size is updated on alignment really for the embodiment of the present application;
Fig. 3 provides the process that each unit size in bag is updated on alignment really for the embodiment of the present application;
A kind of schematic device of determination installation kit size that Fig. 4 is provided for the embodiment of the present application.
Specific embodiment
In actual applications, software developer in order that oneself exploitation App be promoted, be generally required for the App Installation kit be published on line upper mounting plate, by the big advantage of line upper mounting plate user's visit capacity, to promote the App, wherein, for Never for the installation kit issued on online upper mounting plate, when this kind of installation kit is issued on online upper mounting plate, then can claim this kind of Installation kit is installation kit on line, and accordingly, before installation kit is not reached the standard grade also on line, the installation kit under it is online then can be described as under line Installation kit.Software developer is issued on the line upper mounting plate on line after installation kit, it is follow-up generally the App can all be carried out it is certain complete It is kind, update, with and come, in order to allow users to using the App after updating, software developer is generally needed after renewal App corresponding to installation kit be published to line upper mounting plate up, and replace installation kit on the line existed on line upper mounting plate, its In, do not issue on online upper mounting plate, and can be described as updating bag under line for updating the installation kit of the App, accordingly, under the line more New bag then can be described as updating bag on line after being published to line upper mounting plate.It is relative to installation kit under line that bag is updated under line described herein , i.e. under line installation kit equivalent to the history installation kit that bag is updated under line, accordingly, on line installation kit then equivalent on line more The history installation kit of new bag, so, referred to herein as line on installation kit be not necessarily meant to refer to issue on online upper mounting plate for the first time Installation kit.
The installation kit of App is published to when on line upper mounting plate, and line upper mounting plate can all enter to the installation kit that software developer uploads The certain treatment of row, so, it is generally the case that installation kit in size would generally be different under installation kit and line on line, similarly, line The size that bag is updated under upper renewal bag and line also can be different, and software developer is in order to allow users to using the same of the App When, it is also desirable to the memory space of the occupancy subscriber terminal equipment that the App can try one's best low, so, software developer is again by under line Update bag to be published to when on line upper mounting plate, be generally required for by certain mode, determining after update under the line and wrapping line The size of bag is updated on line.And generally all only determine to be updated on line in the prior art with a part of data in installation kit under line The size of bag, also, this partial data there is typically further common factor with other data, therefore, determined based on this partial data The size that bag is updated on the line for going out is typically inaccurate.In order to update the size of bag in accurately determination outlet, at this In application embodiment, terminal or server pass through under installation kit on the line that gets and line the big of all types of data in installation kit It is small, each estimation factor is determined, and it is further according to the size that all types of data in bag are updated under each estimation factor and line, Determine to be updated in outlet the size of bag, this process will be described in detail below.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
The process of the determination installation kit size that Fig. 1 is provided for the embodiment of the present application, specifically includes following steps:
S101:Obtain on line on installation kit and the line installation kit under the corresponding line of installation kit.
In the embodiment of the present application, in order to the accurate size for determining to update bag in outlet, software developer can lead to Cross terminal or server and pacify under the corresponding line of installation kit on installation kit and the line obtaining updated on the line on the corresponding line of bag Dress bag, wherein, because installation kit is issued on online upper mounting plate on line, so, software developer can be by terminal or server Installation kit on the line is got from line upper mounting plate, and software developer updates under installation kit under often developing a line or line Bao Shi, can be preserved, in case it is follow-up used, so, what software developer can be preserved from terminal or server Each installation kit is directly obtained installation kit under the line, as shown in Figure 2.
Fig. 2 provides the detailed maps that bag size is updated on alignment really for the embodiment of the present application.
In fig. 2, terminal can get installation kit on line from line upper mounting plate, and get the line from the terminal itself Installation kit under the corresponding line of upper installation kit, and if installation kit and be not preserved in the terminal under line, and be stored in software development In the home server of business, then terminal can obtain installation kit under the line from the home server.Wherein, referred to herein as terminal Can be the smart machines such as computer, smart mobile phone that software developer uses.Certainly, can also be obtained by server pacify on line Installation kit under dress bag and line, and in subsequent process, the size that bag is updated on the line that will be determined is sent to terminal and is shown Show.
S102:According to the size of all types of data included in installation kit under installation kit on the line and line, determine Each estimation factor, wherein, each data is pertaining only to a type.
Terminal or server are being got on line on installation kit and the line under the corresponding line of installation kit after installation kit, can be pressed According to the same criteria for classifying, respectively by each data included in installation kit under installation kit on line and line be divided into it is all types of in, To obtain all types of data, wherein, according to each data that same criteria for classification is divided, each data only corresponds to a type. Then, terminal or server can according to the size of all types of data in installation kit under installation kit on the line determined and line, Determine each estimation factor for determining renewal bag size on line.
Specifically, in actual applications, either installation kit under installation kit or line on line, its data for including generally may be used It is divided into following a few classes:The first kind is referred to as variable data, for this kind of data, because installation kit is line upper mounting plate by line on line Lower installation kit by being obtained after certain treatment, so, a part of data and this portion in installation kit under line in installation kit on line Divided data is compared, often different in size, therefore, installation kit is changing into the mistake of installation kit on line via line upper mounting plate under line Cheng Zhong, we can be referred to as variable data to this kind of data that the size of data can change, and such data are generally wrapped Include binary data and device-specific data, wherein, referred to herein as device-specific data refer to it is being included in installation kit on line, The data on some wearable smart machines can be operated in.Relative to variable data, on line under installation kit or line in installation kit Generally also include a kind of fixed data, this data in size will not with line installation kit be changed into the mistake of installation kit on line Journey and change, i.e. this data will not change in size, in actual applications, fixed data mainly include such as scheme The resource datas such as piece, file.
Therefore, in the embodiment of the present application, terminal or server can be according to the same criteria for classifying, can be from the line for getting Installation kit marks off variable data and fixed data under installation kit and line, and then, terminal or server can be according to determining Line under on installation kit and line the variable data of installation kit size, determine the first estimation factor, concrete mode can be By the size of the variable data of installation kit on line divided by the size of the variable data of installation kit under line, installation kit and line on line are obtained A scale factor of the lower installation kit in variable data, such as formula α=w1(T)÷w0(T), wherein, w1(T) it is installation on line The size of the variable data in bag, w0(T) be the size of variable data in installation kit under line, α be the first estimation for determining because Son.Certainly, the determination mode of the first estimation factor can also be pacified using the size of the variable data of installation kit under line divided by line The mode for filling the size of the variable data of bag determines, and follow-up determination process need to only be adjusted accordingly, also may be used It is determined using other modes, such as according to the size of the variable data of installation kit under installation kit on line and line and default Coefficient determine, herein just do not illustrate one by one.
In actual applications, installation kit is by after certain treatment, obtaining under the line that line upper mounting plate uploads software developer To line on the data of a part generally can be all had more in installation kit, this partial data is generally all line upper mounting plate according to itself It is required that be added on line in installation kit, also, the size of this partial data is generally all relevant with the total size of installation kit under line, Such as, the total size of installation kit is bigger under line, and the size of this partial data on line in installation kit is bigger, due to this partial data phase When what is then provided by line upper mounting plate, so, this partial data may be generally referred to as third party's data, e.g., for the line of apple For upper App platforms AppStore, the third party's data on line in installation kit refer to then the SC-Info numbers generated by AppStore According to.
Because third party's data are related generally all with the total size of installation kit under line, so, third party's data are usual Also should be related to the variable data or fixed data in installation kit under line, and because the embodiment of the present application is intended to accurately determine The size of bag is updated on line, being updated on line in wrapping can generally also include third party's data, so, in the embodiment of the present application In, terminal or server it needs to be determined that go out an estimation factor related to third party's data, and subsequently through the estimation because The size of all types of data in bag is updated under son and line, determines to update the size of third party's data in bag in outlet, and then The size that bag is updated on the line is accurately determined, therefore, terminal or server are needed from installation kit on the line for getting really The size of the third party's data included in installation kit on the line is made, then, because third party's data generally should be in peace under line There is certain proportionate relationship in variable data or fixed data in dress bag, therefore, terminal or server can be from the lines for getting Arbitrarily chosen in all types of data included in lower installation kit a kind of data as first specify data, and according to this first specify In the size of data and the line determined in installation kit third party's data size, determine the second estimation factor, specifically Determination mode can be that the size of the third party's data in installation kit on the line that will be determined is chosen divided by from installation kit under line First specify data size, obtain this second estimation the factor, such as formula δ=w1(v)÷w0(T), wherein, w1(T) on line The size of the third party's data in installation kit, w0(T) it is the size of variable data in installation kit under line, δ is second for determining The estimation factor, can be also determined using other modes certainly, need to only embody the size of third party's data in installation kit on line With the relation of installation kit under line.
For example, terminal or server in installation kit under optional line taking it is determined that during the second estimation factor, include Variable data as first specify data, and determine this first specify data size, then, terminal or server can be from acquisitions To line on determine the size of the third party's data included in installation kit on the line in installation kit, and by above-mentioned formula δ= w1(v)÷w0(T) the second estimation factor, is determined.
It should be noted that in actual applications, variable data generally includes binary data and device-specific data, because This, in the embodiment of the present application, terminal or server, also can be by the lines after installation kit on installation kit under getting line and line The variable data included in installation kit under upper installation kit and line splits into binary data and device-specific data, and root respectively According to the binary data and the size of device-specific data determined, determine the 3rd estimation included by the first estimation factor because Son or the 4th estimation factor.
Specifically, terminal or server from the line for getting it is determined that during the 3rd estimation factor, can pacify respectively The size of binary data is determined under dress bag and line in installation kit, and is pacified according under installation kit on the line determined and line The size of the binary data of bag is filled, the 3rd estimation factor is determined, concrete implementation mode can be by installation kit on line Binary data size divided by the binary data of installation kit under line size, such as formula β=w1(x)÷w0Shown in (x), Wherein, the w in the formula1X () represents the size of the binary data of installation kit on line, w0X the two of installation kit enter under () expression line The size of data processed, β then represents the 3rd estimation factor determined.Certainly, the determination mode of the 3rd estimation factor is not unique, Also weight, coefficient etc. can be added in above-mentioned formula, herein with regard to not illustrated one by one.
For the determination mode of the 4th estimation factor, terminal or server can determine respectively in outlet installation kit and Under line in installation kit device-specific data size, it is and special according to equipment in installation kit under installation kit on the line determined and line With the size of data, the 4th estimation factor is determined, concrete implementation mode can be, by the device-specific of installation kit on line The size of data obtains a ratio divided by the size of device-specific data in installation kit under line, and using the ratio as the 4th The estimation factor, such as formula γ=w1(y)÷w0Shown in (y), wherein, w1Y () represents on line the big of device-specific data in installation kit It is small, w0Y () represents the size of device-specific data in installation kit under line, γ then represents the 4th estimation factor determined.Certainly, The determination mode of the 4th estimation factor is also not necessarily to be carried out according to above-mentioned formula, also can be in above-mentioned γ=w1(y)÷w0(y) Middle some weights of addition, coefficient etc., are not just described in detail herein.
S103:Determine to update under line the size of all types of data included in bag.
In actual applications, the proportionate relationship on line under installation kit and line in installation kit between all types of data, generally with It is close that the proportionate relationship updated under bag and line in bag between all types of data is updated on line, for example, installation kit and line on line Proportionate relationship between the variable data of both lower installation kits generally updates the variable of both bags with line under renewal bag and line Ratio between data is same or like, in other words, by all types of data in installation kit under installation kit on line and line Between proportionate relationship, and under line update bag in all types of data size, can determine in outlet update bag in it is all types of The size of data, and then determine to update the size of bag in outlet.Because the embodiment of the present application is intended to accurately determine in outlet more The size of new bag, so, after above-mentioned steps S101~S102 determines each estimation factor, then need further to determine The size of all types of data in bag is updated under line, and by subsequent step, according to all types of numbers in renewal bag under the line determined According to size, and respectively estimate the factor, determine to update the size of bag in outlet.Therefore, terminal or server respectively estimate being determined After calculating the factor, can further determine to update the size of all types of data in bag under outlet, wherein, terminal or server can be according to With the identical criteria for classifying in above-mentioned steps S102, variable data and fixed data are divided into by the data in bag are updated under line, And the size that the variable data and fixed data included in bag is updated under the line is determined respectively, also variable data can be entered one Step is divided into binary data and device-specific data, and it is special respectively to determine to update under outlet binary data and equipment in bag With the size of data.
It should be noted that terminal or server also can on line is obtained under installation kit and line while installation kit, Get in the lump and bag is updated under line, and determine the size that all types of data included in bag are updated under the line, and not necessarily After each estimation factor is determined, then to determine to update the size of all types of data in bag under outlet.
S104:According under the line determined update bag in all types of data size and respectively estimate the factor, really The size that bag is updated on the corresponding line of bag is updated under the fixed line.
Terminal or server, can be according to determining it is determined that after the size that all types of data included in bag are updated under outlet Each estimation factor, and the size of all types of data of bag is updated under the line, determine to be updated in outlet all types of data in bag Size, and then according to the size of all types of data in bag is updated on the line determined, determine to update the size of bag in outlet.
Specifically, because terminal or server will can update according to the data criteria for classifying in above-mentioned steps S102 under line Data in bag are divided into variable data and fixed data, and to determine and update variable data and fixed data in bag under the line Size, so, terminal or server can be estimated according to the size of the variable data updated under the line determined in bag and first The factor is calculated, determines to update the size of variable data in bag in outlet, and for being updated on line in bag for the size of fixed data, Due to the size of fixed data be will not as line upper mounting plate changes to the treatment of installation kit, so, on line update In bag the size of fixed data its be actually the size that fixed data in bag is updated under line, so, it is determined that under outlet more In new bag while the size of fixed data, the size that fixed data in bag is updated on line has also been determined that out.
Being updated on line in bag generally can all update third party's data obtained by bag under wired upper mounting plate treatment line, so, In order to update the size of bag on the line accurately determined, terminal or server are needed also exist for third party's online data The upper size updated in bag is determined, and due to terminal or server pass through to define in above-mentioned steps S102 one and The second related estimation factor of third party's data, although the second estimation factor is by third party's data in installation kit on line Size and line under in installation kit the size of variable data or fixed data any one data determine, but, by Renewal bag two under bag and line is updated in ratio between all types of data of both installation kits under installation kit on line and line, with line Ratio between all types of data of person is close or identical, so, terminal or server are it is determined that third party in updating bag on line During the size of data, the second estimation factor equally can be used.Therefore, in the embodiment of the present application, terminal or server can roots According to the second estimation factor, determine that the second estimation factor is drawn based on which kind of data in installation kit under line, i.e. it is determined that First data are specified in installation kit under selected line when going out to calculate the second estimation factor, then, terminal or server can The size determined in wrapping with the first specified data type identical data is updated under the line, and according to the number determined According to size and second estimation the factor, determine in outlet update bag in third party's data size.
Terminal or server fixed data in determining to update bag in outlet successively, variable data, third party's data After size, the size of these three data that will can be determined is summed up, and then obtains being updated on line the size of bag, such as formula A =w2(T)×α+w2(i)×δ+w2Shown in (z), in the formula, w2(T) it is the size of variable data in renewal bag under line, and w2 (T) size of variable data in bag, w are updated on the result that × α is obtained as line2I () is the first specified number in renewal bag under line According to size, wherein, when it is determined that second estimation the factor during, using the variable data in installation kit under line as first refer to Fixed number according to when, then w2I () can accordingly become w2(T), that is, represent line under update bag in variable data size, and when it is determined that During the second estimation factor, using the fixed data in installation kit under line as first specify data when, then w2I () can be corresponding Become w2The size of fixed data in bag, accordingly, w are updated under (z), i.e. expression line2On i result that () × δ is obtained as line Update the size of third party's data in bag, w2The size of fixed data in bag is updated under (z) expression line, equally be show also on line Update the size of fixed data in bag.Certainly, above-mentioned formula is not unique, can be in above-mentioned formula A=w2(T)×α+w2(i)×δ+ w2Some weights, coefficient etc. are added in (z), is not just described in detail one by one herein.
It should be noted that variable data also can further be split into binary data and equipment for terminal or server Exclusive data, and according to above-mentioned the 3rd estimation factor determined and the 4th estimation factor, determine to update bag in outlet respectively The size of middle binary data and device-specific data.Specifically, terminal or server can update according under the line determined Binary data and the 3rd estimation factor in bag, determine to update the size of the binary data in bag in outlet, similarly, eventually End or server can be determined in outlet according to the device-specific data updated under the line determined in bag and the 4th estimation factor Update the size of the device-specific data in bag.Accordingly, subsequent terminal or server are defining renewal bag on line in succession In third party's data and fixed data size after, can according on the line determined update bag in all types of data size, The further size for determining to update bag in outlet, concrete implementation mode is referred to formula A=w2(x)×β+w2(y)×γ +w2(i)×δ+w2(z), in the formula, w2X () is to update the size of binary data included in bag, corresponding w under line2(x) The result that × β is obtained is the size that binary data in bag is updated on line, w2Y () is the device-specific included in renewal bag under line The size of data, and w2Y result that () × γ is obtained is the size that device-specific data in bag is updated on line.
Through the above way as can be seen that because terminal or server on line during it is determined that update bag size, and Be not only based on installation kit on line in the size of a part of data carry out, but by installation kit on line and line The size of all types of data included in lower installation kit, the size to determine to be updated on line bag in all directions, moreover, due to The all types of data marked off according to same standard are mutually, in the absence of common factor, so to avoid because between all types of data There is a problem of common factor and cause the size that bag is updated on the line determined inaccurate, so enable software developer according to The convenient size to updating bag under the corresponding line of renewal bag on the line of size that bag is updated on the accurate line determined is adjusted.
It should be noted that in actual applications, an installation kit is each developed by each software developer The each unit composition for going out, so, when according to the size that bag is updated on the line determined to update the size of bag under adjusting line, It is actually to be adjusted to updating the size of each unit in bag under line, therefore, in the embodiment of the present application, terminal or clothes Business device be can determine that while it is determined that updating the size of bag in outlet, also in outlet update bag in each unit size, and according to The size of each unit in bag is updated on the line determined, to be adjusted to the size that each unit in bag is updated under line, specific mistake Journey is as shown in Figure 3.
Fig. 3 provides the process that each unit size in bag is updated on alignment really for the embodiment of the present application, specifically includes following Step:
S301:It is determined that each encapsulation front unit corresponding with unit after each encapsulation included in renewal bag under the line.
In actual applications, it is contemplated that the factor of encapsulation, each unit that includes in bag is updated under line unencapsulated preceding big Small sum is often different from the size sum of each unit after encapsulation, accordingly, after the size of each unit is encapsulated before packaging Change occurs, so, it is determined that during each unit size in updating bag on line, it is impossible to only only think the size reality of each unit Upper is exactly the unencapsulated online lower size updated before bag of each unit, the front and rear size of each unit encapsulation should can be changed because Element is taken into account, also, wraps often different with the size that bag is updated under line due to being updated on line, accordingly, for each unit For, it updates the size updated in bag under bag and line and also tends to be different on line, so, in it is determined that updating bag on line During each unit size, in addition it is also necessary to which each unit is updated the factor that bag changes with size in renewal bag under line on line Take into account, therefore, it is determined that, it is necessary to first determine each with renewal bag under line before the size of each unit during renewal is wrapped on line The corresponding each encapsulation front unit of unit after encapsulation, wherein, referred to herein as each encapsulation after unit refer to encapsulated it is online under more The each unit in bag is updated on new bag or line, and it refers to then the also unencapsulated online lower each list updated in bag respectively to encapsulate front unit Unit.Because each software developer is after each unit is developed, generally all can be by each unit storage in local terminal or local service In device, therefore, in the embodiment of the present application, terminal or server can transfer prestore each from other-end or server Encapsulation front unit, and in subsequent process, determine the size of all types of data included in each encapsulation front unit.
S302:Respectively determine binary data, device-specific data, fixed data that each encapsulation front unit is included The total size of size and all types of data in each encapsulation front unit.
Although the size after each unit in bag is updated under line before packaging occurs change, unit after each encapsulation Size the line is busy that the lower proportion for updating bag is but close with the proportion that the size of each encapsulation front unit accounts for each encapsulation front unit total size Or it is identical, and updated in the size of unit and line after each encapsulation due to being updated on line in bag under the proportion and line of both bag sizes more In new bag after each encapsulation the size of unit the line is busy that the lower proportion for updating bag size is also close or identical, so, can be by determining Size the line is busy the lower proportion for updating bag size of unit after each encapsulation in bag is updated under outlet and according in above-mentioned steps S102 Each estimation factor determined, the size of unit after determining respectively to be encapsulated in renewal bag in outlet.Therefore, in the embodiment of the present application In, terminal or server can further determine the size of all types of data included before each encapsulation, and determine each envelope The total size of each type data that dress front unit is included, and then in subsequent step S303, each unit factor is determined, its In, terminal or server can divide data into binary data, equipment according to identical dividing mode in above-mentioned steps S102 Exclusive data, the data of fixed data these three types.
It should be noted that due to not including wired upper third party's data updated included in bag in renewal bag under line, Also, update what is typically existed in the form of individual in wrapping in third party's online data, and be not dispersed in being updated on line In bag after each encapsulation present in unit, so, should be free of third party's data in each encapsulation front unit.
S303:For each encapsulation front unit, according to binary data, device-specific data that the encapsulation front unit is included Size and all types of data it is each encapsulation front unit in total size, determine each unit factor.
Terminal or server are determining the size of all types of data that each encapsulation front unit is included, and all types of numbers After according to the total size in each encapsulation front unit, each unit factor can be further determined, wherein, terminal or server can pins To each encapsulation front unit, before the size of the binary data included according to the encapsulation front unit determined and each encapsulation The total size of the binary data that unit is included, determines the first module factor, and specific embodiment can be, by the envelope The size of binary data of front unit is filled divided by each total size for encapsulating the binary data that front unit is included, such as formulaWherein, uiX () represents i-th size for encapsulating the binary data that front unit is included, The total size of the binary data that each encapsulation front unit is included is represented, n represents the number of encapsulation front unit.
Similarly, terminal or server can also be wrapped for each encapsulation front unit according to the encapsulation front unit determined The size of the device-specific data for containing, and the total size of device-specific data that each encapsulation front unit is included, determine the Two element factors, specific embodiment can be, the device-specific data that the encapsulation front unit that will be determined is included The total size of the device-specific data that size is included divided by each encapsulation front unit, such as formulaWherein, uiThe size of y device-specific data that () is included by i-th encapsulation front unit,Each encapsulation front unit is included The total size of device-specific data, n is the number for encapsulating front unit.
It should be noted that the determination mode of each unit factor of described above is not unique, for example, can be in described above The determination each unit factor formula in add some coefficients or weight etc., just do not illustrate one by one herein.
S304:According to each unit factor determined, it is described it is each estimation the factor, the fixed data of the encapsulation front unit it is big The size of all types of data in bag is updated under the small and line, determines to be updated on the line corresponding with the encapsulation front unit in bag Encapsulation after unit size.
Terminal or server can further be determined after each unit factor is determined for each encapsulation front unit The size of all types of data that unit is included after encapsulation corresponding with the encapsulation front unit in renewal bag under line, and then according to Each estimation factor is determined in above-mentioned steps S102, is determined single after encapsulation corresponding with the encapsulation front unit in renewal bag in outlet The size of unit.
Specifically, because in actual applications, each unit after being encapsulated in installation kit or updating in bag, also will by its size Cannot directly determine, but during bag is updated under needing the size and line by all types of data in each encapsulation front unit The size of all types of data determines to update under outlet the size of all types of data of unit after each encapsulation in bag, and then determines The size of unit after each encapsulation in wrapping is updated under outlet.Therefore, in the embodiment of the present application, terminal or server are for each Encapsulation front unit, after determining the corresponding first module factor of the encapsulation front unit, can be according to the first module factor, Yi Jitong Cross under the line that above-mentioned steps S103 is determined and update the size of the included binary data of bag, determine to update under outlet in bag with The size of the binary data that unit is included after the corresponding encapsulation of encapsulation front unit, specific embodiment can be incited somebody to action The first module factor is multiplied by under line the size for updating the included binary data of bag, such as formula mi(x)=ai×w2(x), its In, miThe size of the binary data that unit is included after i-th encapsulation in wrapping is updated under (x) expression line.
Similarly, for each encapsulation front unit, terminal or server can be corresponding according to the encapsulation front unit determined The size of the included device-specific data of bag is updated under the second unit factor, and the line determined, determines to be updated under outlet The size of the device-specific data that unit is included after the Bao Zhongyu corresponding encapsulation of encapsulation front unit, specific embodiment can To be, using formula mi(y)=bi×w2Y (), the corresponding second unit factor b of front unit is encapsulated by i-thiIt is multiplied by under line more The size of the included device-specific data of new bag, obtains updating under line i-th envelope corresponding with i-th encapsulation front unit in bag The size of the device-specific data that unit is included after dress.Certainly, referred to herein as determination mode it is not unique, can also use it His formula is determined, and is not just described in detail herein.
Terminal or server determine to update under outlet corresponding with the encapsulation front unit in bag for each encapsulation front unit After encapsulation after the size of all types of data that unit is included, can further according to above-mentioned steps S102 determine each estimation because Son, determines the size of all types of data that unit is included after encapsulation corresponding with the encapsulation front unit during renewal is wrapped in outlet. Specifically, terminal or server can be according to unit institutes after encapsulation corresponding with the encapsulation front unit in renewal bag under the line determined Comprising binary data size, and the 3rd estimation the factor, further determine on line update bag in the encapsulation The size of the binary data that unit is included after the corresponding encapsulation of front unit, specific embodiment can use formula oi (x)=β × miIt is corresponding with i-th encapsulation front unit in (x), the 3rd estimation factor-beta that will be determined and online lower renewal bag I-th encapsulation after the size m of binary data that is included of unitiX () is multiplied, obtain being updated on line in bag with i-th The individual size o for encapsulating the binary data that unit is included after front unit is encapsulated for corresponding i-thi(x)。
Similarly, after terminal or server can be according to encapsulation corresponding with the encapsulation front unit in renewal bag under the line determined The size of the device-specific data that unit is included and the 4th estimation factor determined by above-mentioned steps S102, are determined The size of the device-specific data that unit is included after encapsulation corresponding with the encapsulation front unit in wrapping is updated on line, it is specific to implement Mode can use formula oi(y)=γ × mi(y), with i-th during renewal is wrapped under the 4th estimation factor gamma and line that will determine The individual size m for encapsulating the device-specific data that unit is included after front unit is encapsulated for corresponding i-thiY () is multiplied, obtain line The size o of the device-specific data that unit is included after being encapsulated for corresponding i-th with this i-th encapsulation front unit in upper renewal bagi (y)。
By the fixed data that each encapsulation front unit is included will not change, so, terminal or server are for every Individual encapsulation front unit, the size of the fixed data that the encapsulation front unit determined is included, its be actually on line update bag in The size of the fixed data that unit is included after encapsulation corresponding with the encapsulation front unit, accordingly, terminal or server are respectively Determine unit is included after encapsulation corresponding with the encapsulation front unit in renewal bag in outlet binary data, device-specific number According to after, the size of fixed data, the size of this three's data can be summed up, so obtained being updated on line in bag with the envelope The size of unit after the corresponding encapsulation of dress front unit.
The size of bag is updated on the line that terminal or server will further can be determined, and is included in renewal bag on line Each encapsulation after the size of unit shown to user, wherein, terminal or server be able to will be determined with modes such as webpage, notepads The result for going out is shown to software developer and is checked in forms such as text, pictures.
It should be noted that in the embodiment of the present application, after terminal or server determine to be updated in outlet the size of bag, Can be according to default regulation rule, renewal bag is adjusted under the corresponding line of bag will be updated on the line, for example, when renewal bag on line Size beyond the threshold value of setting when, terminal or server will update the data updated in bag under the corresponding line of bag on the line carried out Analysis, and according to the result for analyzing, will be updated under line in bag some can public data integrated, while will be unnecessary Data are deleted, and then reduce the purpose of renewal bag size on line to reach by way of updating bag size under reducing line.
Bag is updated on bag or line due to being updated under either line, it is essentially all to be made up of unit after each encapsulation , so, the essence that the size to updating bag under line is adjusted is in fact the big of unit after respectively being encapsulated in being wrapped to renewal under line It is small to be adjusted, also, the essence of adjustment is in fact that the size of each encapsulation front unit is adjusted.Therefore, in the application reality Apply in example, terminal or server can be directed on line unit after each encapsulation updated in bag, according to renewal bag on the line determined Size and the encapsulation after unit size, adjustment with updated under line wrap in the corresponding encapsulation front unit of unit after the encapsulation, Specifically, when terminal or server find that the size that bag is updated on the line determined exceeds the first given threshold, can be further Whether check on line the size for updating unit after each encapsulation in bag beyond the second given threshold, wherein, when terminal or service When device finds that the size of unit after a certain encapsulation exceeds second given threshold, can by this encapsulate after it is single before the corresponding encapsulation of unit The size of unit is adjusted, so that the size of unit second sets without departing from this after encapsulation corresponding to encapsulation front unit after adjustment Determine threshold value.Similarly, the size of other encapsulation front units can also be adjusted in this way, and then cause terminal or server Being sized to less than the first given threshold for bag is updated on the follow-up line determined again.
Certainly, terminal or server are it is determined that update the size of unit after a certain encapsulation in bag beyond the second setting in outlet After threshold value, also list after the encapsulation can be further determined according to the mode shown in Fig. 2, according to the mark of unit after the encapsulation Encapsulation front unit corresponding to unit is sent by the terminal of which software developer, and is opened to the software in the form of information The terminal of hair personnel sends and notifies so that after the software developer views the notice, adjusts after the encapsulation corresponding to unit Encapsulation front unit.
It should be noted that the second given threshold mentioned above can be directed on line in renewal bag list after all encapsulation Unit and a threshold value setting, it is also possible to set one second respectively and set for unit after each encapsulation updated on line in bag Determine threshold value, accordingly, when terminal or server determine that the size that bag is updated in outlet exceeds the first given threshold, can look into respectively Unit after each encapsulation for updating and being included in bag is seen on the line, and whether unit is beyond second corresponding to itself after determining each encapsulation Given threshold.
It should be noted that, in actual applications, bag is either updated on line, bag is updated under line, or installation kit on line, Installation kit under line, it generally all exists in compressed form, and because the embodiment of the present application is intended to determine updated in outlet The size of bag, so, it is determined that updated under line bag, on line under installation kit, line in installation kit all types of data size, and really During determining each unit factor, each estimation factor, the form of compression should be also taken to be determined, to ensure whole determination process Reasonability.Again due to updated on line the compressed format of bag be generally all determined by line upper mounting plate, therefore, in the application reality In applying example, terminal or server can first determine the compressed format of installation kit on the line obtained from line upper mounting plate, and according to true The compressed format made, updates bag and is pressed according to identical compressed format under the line that will subsequently get under installation kit and line Contracting, then, updates the size of all types of data in bag under installation kit and line under installation kit, line on the line after according to compression, Determine to be updated in outlet the size of bag, wherein, the form of compression can be the forms such as zip, tar, ditto, cab, bz2, jar.
The method of the determination installation kit size for being provided for the embodiment of the present application above, based on same thinking, the application reality Apply example and additionally provide the device for determining installation kit size, as shown in Figure 4.
A kind of schematic device of determination installation kit size that Fig. 4 is provided for the embodiment of the present application, specifically includes:
Acquisition module 401, obtains on line on installation kit and the line installation kit under the corresponding line of installation kit;
Certainty factor module 402, according to all types of data included in installation kit under installation kit on the line and line Size, determines each estimation factor, wherein, each data is pertaining only to a type;
First determining module 403, determines to update the size of all types of data included in bag under line;
Second determining module 404, size according to all types of data updated under the line determined in bag and each The estimation factor, determines to update the size for updating bag on the corresponding line of bag under the line.
The all types of data included in installation kit under the line include:At least one in fixed data, variable data;Institute Stating all types of data included in installation kit on line includes:At least one in fixed data, variable data, third party's data.
The certainty factor module 402, determine to be included in installation kit on installation kit under the line and line respectively is variable The size of data;The size of the variable data in installation kit on installation kit under the line determined respectively and line, it is determined that The first estimation factor;Determine the size of third party's data included in installation kit on the line;Wrapped from installation kit under the line A kind of data are arbitrarily chosen in the variable data, the fixed data that contain and specifies data as first;According to third party's data with And described first specify data size, determine the second estimation factor.
Second determining module 404, according under the line determined update bag in variable data size and The first estimation factor, determines to update the size of the variable data in bag on the line;According to the described second the estimation factor and line It is lower to update the size with the first specified data type identical data included in bag, in determining that renewal is wrapped on the line The size of third party's data;According to variable data, the size of third party's data and institute that bag is updated on the line determined The size of the fixed data that bag is updated under line is stated, determines to update the size of bag on the line.
The variable data includes:At least one in binary data, device-specific data;The first estimation factor Including:The 3rd estimation factor and/or the 4th estimation factor;
The certainty factor module 402, determines that included in installation kit on installation kit under the line and line two enter respectively The size of data processed, the size of the binary data in installation kit on installation kit under the line determined respectively and line, Determine the 3rd estimation factor;And/or
Determine the size of device-specific data included in installation kit on installation kit under the line and line respectively, according to point The size of the device-specific data under the line do not determined on installation kit and line in installation kit, determines the 4th estimation factor;
Second determining module 404, according under the line determined update bag in binary data size with And the 3rd estimation factor, determine to update the size of the binary data in bag on the line;According to the line determined The lower size for updating the device-specific data in bag and the 4th estimation factor, determine to update the equipment in bag on the line The size of exclusive data;According to binary data, device-specific data, third party's type that bag is updated on the line determined The size of the fixed type data of bag is updated under the size of data and the line, determines to update the size of bag on the line.
Described device also includes:
Determining unit module 405, it is determined that each encapsulation corresponding with unit after each encapsulation included in renewal bag under the line Front unit;Determine respectively it is described it is each encapsulation front unit include binary data, device-specific data, fixed data size with And total size of all types of data in each encapsulation front unit;For each encapsulation front unit, included according to the encapsulation front unit Total size in each encapsulation front unit of binary data, the size of device-specific data and all types of data, it is determined that respectively Element factor;According to each unit factor determined, it is described it is each estimation the factor, the size of the fixed data of the encapsulation front unit with And under the line update bag in all types of data size, determine on the line update bag in envelope corresponding with the encapsulation front unit The size of unit after dress.
The determining unit module 405, the size of the binary data included according to the encapsulation front unit and determination The total size of the binary data that each encapsulation front unit is included, determines the first module factor;Included according to the encapsulation front unit The total size of the device-specific data that the size of device-specific data and each encapsulation front unit of determination are included, determines that second is single First factor.
The determining unit module 405, according to binary number in renewal bag under the first module factor and the line According to size, determine to update under the line in bag the big of the binary data of unit after encapsulation corresponding with the encapsulation front unit It is small;According to the size that device-specific data in bag is updated under the second unit factor and the line, determine under the line more In new bag after encapsulation corresponding with the encapsulation front unit device-specific data of unit size;According to the described 3rd estimation factor And update the size of the binary data of unit after encapsulation corresponding with the encapsulation front unit in bag under the line determined, Determine the size of the binary data of unit after encapsulation corresponding with the encapsulation front unit during renewal is wrapped on the line;According to described The equipment that unit after encapsulation corresponding with the encapsulation front unit in wrapping is updated under the 4th estimation factor and the line determined The size of exclusive data, determines the device-specific number of unit after encapsulation corresponding with the encapsulation front unit during renewal is wrapped on the line According to size;The size of the fixed data included according to the encapsulation front unit, and on the line update bag in the encapsulation before The binary data of unit, the size of device-specific data after the corresponding encapsulation of unit, determine on the line update bag in should The size of unit after the corresponding encapsulation of encapsulation front unit.
Described device also includes:
Adjusting module 406, according to the size that bag is updated on the line determined, adjusts renewal bag under the line.
The adjusting module 406, for unit after each encapsulation updated on the line in bag, according to determining Update the size of bag and the size of unit after the encapsulation on line, adjustment with updated under line wrap in the corresponding envelope of unit after the encapsulation Dress front unit.
The embodiment of the present application provides a kind of method and device for determining installation kit size, and terminal or server can in the method Installation kit on installation kit and line is got under the line for updating under the line onto line upper mounting plate to be released corresponding to bag, and by right The size of all types of data of the non-overlapping copies included in installation kit on installation kit and line under line is determined to determine this The size that bag is updated on the line corresponding to bag is updated under line.Because terminal or server are more than only with installation kit on line one The size of partial data determines to be updated on line the size of bag, and then by being included in installation kit under installation kit on line and line The size of all types of data, is determined to the size that bag is updated on line comprehensively, also, with each system in the prior art in data On to there is certain common factor different, terminal or server are it is determined that institute during updating bag size on line in the embodiment of the present application The all types of data determined are free from common factor, i.e. each data only corresponds to a type, so avoids because all kinds of Occur occuring simultaneously and causing the situation that relatively large deviation occurs in the size for updating bag on the line finally determined to occur between type data, institute With, in general, in terms of existing technologies, can accurately determine to update the size of bag in outlet by the above method, enter And adjusted by updating the size of bag on the line determined to software developer update bag size under line during bring just Profit.
It should be noted that the executive agent that embodiment 1 provides each step of method may each be same equipment, or Person, the method is also by distinct device as executive agent.Such as, the executive agent of step S102 and step S103 can be for eventually End, the executive agent of step 101 can be server;Again such as, the executive agent of step 101 can be terminal, step 102 and The executive agent of step 103 can be server;Etc..
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and deposited The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., within the scope of should be included in claims hereof.

Claims (20)

1. it is a kind of determine installation kit size method, it is characterised in that including:
Obtain on line on installation kit and the line installation kit under the corresponding line of installation kit;
According to the size of all types of data included in installation kit under installation kit on the line and line, determine each estimation because Son, wherein, each data is pertaining only to a type;
Determine to update under line the size of all types of data included in bag;
Size according to all types of data updated under the line determined in bag and the factor is respectively estimated, under determining the line Update the size that bag is updated on the corresponding line of bag.
2. the method for claim 1, it is characterised in that all types of data included in installation kit under the line include: At least one in fixed data, variable data;The all types of data included in installation kit on the line include:Fixed data, At least one in variable data, third party's data.
3. method as claimed in claim 2, it is characterised in that included in installation kit according under installation kit on the line and line All types of data size, determine each estimation factor, specifically include:
The size of variable data included in installation kit on installation kit under the line and line is determined respectively;
The size of the variable data in installation kit on installation kit under the line determined respectively and line, determines the first estimation The factor;
Determine the size of third party's data included in installation kit on the line;
A kind of data are arbitrarily chosen in the variable data, the fixed data that are included from installation kit under the line and specifies number as first According to;
The size of data is specified according to third party's data and described first, the second estimation factor is determined.
4. method as claimed in claim 3, it is characterised in that all types of in the renewal bag under the line determined The size of data and the factor is respectively estimated, determine to update the size wrapped and update bag on the line after line under the line, specifically included:
Size and the first estimation factor according to the variable data updated under the line determined in bag, determine on the line Update the size of the variable data in bag;
It is including with the first specified data type identical number in bag according to being updated under the described second estimation factor and line According to size, determine on the line update bag in third party's data size;
According to renewal bag under variable data, the size of third party's data and the line that bag is updated on the line determined The size of fixed data, determines to update the size of bag on the line.
5. method as claimed in claim 4, it is characterised in that the variable data includes:Binary data, device-specific number At least one in;
The first estimation factor includes:The 3rd estimation factor and/or the 4th estimation factor;
According to the size of all types of data included in installation kit under installation kit on the line and line, determine each estimation because Son, specifically includes:
The size of binary data included in installation kit on installation kit under the line and line is determined respectively, according to determining respectively The size of the binary data under the line for going out on installation kit and line in installation kit, determines the 3rd estimation factor;And/or
The size of device-specific data included in installation kit on installation kit under the line and line is determined respectively, according to true respectively The size of the device-specific data under the line made on installation kit and line in installation kit, determines the 4th estimation factor;
According under the line determined renewal bag in all types of data size and respectively estimate the factor, determine the line The size that bag is updated on the line after line is wrapped in lower renewal, is specifically included:
Size and the 3rd estimation factor according to the binary data updated under the line determined in bag, determine institute State the size of the binary data updated on line in bag;
Size and the 4th estimation factor according to the device-specific data updated under the line determined in bag, it is determined that The size of the device-specific data in bag is updated on the line;
According to the size that the binary data of bag, device-specific data, third party's categorical data are updated on the line determined And the size of the fixed type data of bag is updated under the line, determine to update the size of bag on the line.
6. method as claimed in claim 5, it is characterised in that methods described also includes:
It is determined that each encapsulation front unit corresponding with unit after each encapsulation included in renewal bag under the line;
Determine respectively it is described it is each encapsulation front unit include binary data, device-specific data, the size of fixed data and Total size of all types of data in each encapsulation front unit;
For each encapsulation front unit, the binary data included according to the encapsulation front unit, the size of device-specific data with And total size of all types of data in each encapsulation front unit, determine each unit factor;
According to each unit factor determined, each estimation factor, the size of the fixed data of the encapsulation front unit and institute The size that all types of data in bag are updated under line is stated, is determined to be updated on the line in bag after encapsulation corresponding with the encapsulation front unit The size of unit.
7. method as claimed in claim 6, it is characterised in that according to binary data, equipment that the encapsulation front unit is included The total size of the size of exclusive data and all types of data in each encapsulation front unit, determines each unit factor, specifically includes:
The binary system that the size of the binary data included according to the encapsulation front unit and each encapsulation front unit of determination are included The total size of data, determines the first module factor;
The equipment that the size of the device-specific data included according to the encapsulation front unit and each encapsulation front unit of determination are included The total size of exclusive data, determines the second unit factor.
8. method as claimed in claim 7, it is characterised in that according to each unit factor determined, each estimation factor, The size of all types of data in bag is updated under the size of the fixed data of the encapsulation front unit and the line, is determined on the line The size of unit after encapsulation corresponding with the encapsulation front unit in wrapping is updated, is specifically included:
According to the size for updating binary data in bag under the first module factor and the line, determine to be updated under the line The size of the binary data of unit after the Bao Zhongyu corresponding encapsulation of encapsulation front unit;
According to the size that device-specific data in bag is updated under the second unit factor and the line, determine under the line more In new bag after encapsulation corresponding with the encapsulation front unit device-specific data of unit size;
According to encapsulation corresponding with the encapsulation front unit in renewal bag under the described 3rd estimation factor and the line determined The size of the binary data of unit afterwards, determines to be updated on the line in bag unit after encapsulation corresponding with the encapsulation front unit The size of binary data;
According to encapsulation corresponding with the encapsulation front unit in renewal bag under the described 4th estimation factor and the line determined The size of the device-specific data of unit afterwards, determines to be updated on the line in bag unit after encapsulation corresponding with the encapsulation front unit Device-specific data size;
The size of the fixed data included according to the encapsulation front unit, and on the line update bag in the encapsulation front unit pair The size of the binary data of unit, device-specific data after the encapsulation answered, determine on the line update bag in the encapsulation before The size of unit after the corresponding encapsulation of unit.
9. the method for claim 1, it is characterised in that methods described also includes:
According to the size that bag is updated on the line determined, renewal bag under the line is adjusted.
10. method as claimed in claim 6, it is characterised in that according to the size that bag is updated on the line determined, adjustment Bag is updated under the line, is specifically included:
For unit after each encapsulation updated on the line in bag, according to the size that bag is updated on the line determined and The size of unit after the encapsulation, adjustment encapsulation front unit corresponding with unit after the encapsulation in renewal bag under line.
A kind of 11. devices for determining installation kit size, it is characterised in that including:
Acquisition module, obtains on line on installation kit and the line installation kit under the corresponding line of installation kit;
Certainty factor module, according to the size of all types of data included in installation kit under installation kit on the line and line, really Each estimation factor is made, wherein, each data is pertaining only to a type;
First determining module, determines to update the size of all types of data included in bag under line;
Second determining module, according under the line determined update bag in all types of data size and respectively estimate because Son, determines to update the size for updating bag on the corresponding line of bag under the line.
12. devices as claimed in claim 11, it is characterised in that all types of packets included in installation kit under the line Include:At least one in fixed data, variable data;The all types of data included in installation kit on the line include:Fixed number According to, at least one in variable data, third party's data.
13. devices as claimed in claim 12, it is characterised in that the certainty factor module, determine to pacify under the line respectively The size of the variable data included in installation kit on dress bag and line;According on installation kit and line under the line determined respectively The size of the variable data in installation kit, determines the first estimation factor;Determine the third party's number included in installation kit on the line According to size;A kind of data are arbitrarily chosen in the variable data, the fixed data that are included from installation kit under the line as first Specify data;The size of data is specified according to third party's data and described first, the second estimation factor is determined.
14. devices as claimed in claim 13, it is characterised in that second determining module, according to the line determined It is lower update bag in variable data size and first estimation the factor, determine on the line update bag in variable data it is big It is small;It is including with the first specified data type identical data in bag according to being updated under the described second estimation factor and line Size, determine on the line update bag in third party's data size;According on the line determined update bag can The size of the fixed data of bag is updated under change data, the size of third party's data and the line, determines to update bag on the line Size.
15. devices as claimed in claim 14, it is characterised in that the variable data includes:Binary data, device-specific At least one in data;The first estimation factor includes:The 3rd estimation factor and/or the 4th estimation factor;
The certainty factor module, the binary data for determining to be included in installation kit on installation kit under the line and line respectively Size, the size of the binary data in installation kit on installation kit under the line determined respectively and line, determines the 3rd The estimation factor;And/or
The size of device-specific data included in installation kit on installation kit under the line and line is determined respectively, according to true respectively The size of the device-specific data under the line made on installation kit and line in installation kit, determines the 4th estimation factor;
Second determining module, the size according to the binary data updated under the line determined in bag and described the The three estimation factors, determine to update the size of the binary data in bag on the line;Wrapped according to being updated under the line determined In device-specific data size and it is described 4th estimation the factor, determine on the line update bag in device-specific data Size;According to updated on the line determined the binary data of bag, device-specific data, third party's categorical data it is big The size of the fixed type data of bag is updated under the small and line, determines to update the size of bag on the line.
16. devices as claimed in claim 15, it is characterised in that described device also includes:
Determining unit module, it is determined that each encapsulation front unit corresponding with unit after each encapsulation included in renewal bag under the line; Binary data, device-specific data, the size of fixed data and all kinds of that each encapsulation front unit is included are determined respectively Total size of the type data in each encapsulation front unit;For each encapsulation front unit, two included according to the encapsulation front unit enter Data processed, the size of device-specific data and all types of data it is each encapsulation front unit in total size, determine each unit because Son;According to each unit factor determined, each estimation factor, the size of the fixed data of the encapsulation front unit and described The size of all types of data in bag is updated under line, is determined single after encapsulation corresponding with the encapsulation front unit in renewal bag on the line The size of unit.
17. devices as claimed in claim 16, it is characterised in that the determining unit module, according to the encapsulation front unit bag The total size of the binary data that the size of the binary data for containing and each encapsulation front unit of determination are included, determines that first is single First factor;What the size of the device-specific data included according to the encapsulation front unit and each encapsulation front unit of determination were included sets The total size of standby exclusive data, determines the second unit factor.
18. devices as claimed in claim 17, it is characterised in that the determining unit module, according to the first module because The size of binary data in bag is updated under the sub and line, determines to update under the line corresponding with the encapsulation front unit in bag Encapsulation after unit binary data size;It is special according to equipment in updating bag under the second unit factor and the line With the size of data, determine to update under the line device-specific data of unit after encapsulation corresponding with the encapsulation front unit in bag Size;According to envelope corresponding with the encapsulation front unit in renewal bag under the described 3rd estimation factor and the line determined The size of the binary data of unit after dress, determines to be updated on the line in bag unit after encapsulation corresponding with the encapsulation front unit Binary data size;According to updated under the described 4th estimation factor and the line determined in bag with the encapsulation before The size of the device-specific data of unit after the corresponding encapsulation of unit, determine on the line update bag in the encapsulation front unit pair The size of the device-specific data of unit after the encapsulation answered;The size of the fixed data included according to the encapsulation front unit, and Updated on the line in bag the binary data of unit after encapsulation corresponding with the encapsulation front unit, device-specific data it is big It is small, determine the size of unit after encapsulation corresponding with the encapsulation front unit during renewal is wrapped on the line.
19. devices as claimed in claim 11, it is characterised in that described device also includes:
Adjusting module, according to the size that bag is updated on the line determined, adjusts renewal bag under the line.
20. devices as claimed in claim 19, it is characterised in that the adjusting module, in renewal bag on the line Unit after each encapsulation, according to the size of unit after the size and the encapsulation that bag is updated on the line determined, adjustment with The corresponding encapsulation front unit of unit after the encapsulation during renewal is wrapped under line.
CN201610671017.9A 2016-08-15 2016-08-15 Method and device for determining size of installation package Active CN106874025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610671017.9A CN106874025B (en) 2016-08-15 2016-08-15 Method and device for determining size of installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610671017.9A CN106874025B (en) 2016-08-15 2016-08-15 Method and device for determining size of installation package

Publications (2)

Publication Number Publication Date
CN106874025A true CN106874025A (en) 2017-06-20
CN106874025B CN106874025B (en) 2020-04-24

Family

ID=59238911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610671017.9A Active CN106874025B (en) 2016-08-15 2016-08-15 Method and device for determining size of installation package

Country Status (1)

Country Link
CN (1) CN106874025B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204332A1 (en) * 2004-03-15 2005-09-15 Ramco Systems Limited Method and system for developing large web-based multi-language applications
CN101635640A (en) * 2009-09-04 2010-01-27 江苏天智互联科技有限公司 Method for automatically releasing terminal program version of WEB network station system server
CN103744692A (en) * 2013-12-13 2014-04-23 贝壳网际(北京)安全技术有限公司 Method and system for determining size of mobile terminal storage space occupied by application software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204332A1 (en) * 2004-03-15 2005-09-15 Ramco Systems Limited Method and system for developing large web-based multi-language applications
CN101635640A (en) * 2009-09-04 2010-01-27 江苏天智互联科技有限公司 Method for automatically releasing terminal program version of WEB network station system server
CN103744692A (en) * 2013-12-13 2014-04-23 贝壳网际(北京)安全技术有限公司 Method and system for determining size of mobile terminal storage space occupied by application software

Also Published As

Publication number Publication date
CN106874025B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN106980605B (en) contract generation method and device
CN105701113B (en) Method and apparatus for optimizing webpage preloading
CN109189563B (en) Resource scheduling method and device, computing equipment and storage medium
US20050044508A1 (en) Method, system and program product for customizing a user interface
CN108509157A (en) A kind of data balancing method and device applied to distributed file system
CN111324471B (en) Service adjustment method, device, equipment and storage medium
US20180337993A1 (en) Sharding over multi-link data channels
CN107133190A (en) The training method and training system of a kind of machine learning system
CN106875201A (en) The acquisition methods and device of the visible factor of advertisement
CN106326062A (en) Method and device for controlling running state of application program
US9690859B2 (en) Transmitting information based on reading speed
CN107608788A (en) A kind of control method, device and equipment
CN108241505A (en) A kind of page adaptation method and device
CN106610824A (en) Page height self-adaptation method and apparatus
CN106776614A (en) The display methods and device of sharing platform
CN106611005A (en) Method and device for setting crawl time interval of crawler
CN106874025A (en) A kind of method and device for determining installation kit size
CN105988920B (en) A kind of test cases generation method and its device based on data set
CN106649317A (en) Method and device for displaying graph
CN108021539A (en) The methods of exhibiting and device of data
CN106843819A (en) The method and device of object serialization
CN106681972A (en) Method and device for displaying table
CN107402749A (en) Realize the method and device in picture loading storehouse
CN107544836A (en) A kind of dispositions method of virtual machine, device and network system
CN106909472A (en) The input/output load regulation method and device of a kind of distributed file system

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
TR01 Transfer of patent right

Effective date of registration: 20201015

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201015

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right