CN105204914B - Application software method for down loading and device - Google Patents
Application software method for down loading and device Download PDFInfo
- Publication number
- CN105204914B CN105204914B CN201510698344.9A CN201510698344A CN105204914B CN 105204914 B CN105204914 B CN 105204914B CN 201510698344 A CN201510698344 A CN 201510698344A CN 105204914 B CN105204914 B CN 105204914B
- Authority
- CN
- China
- Prior art keywords
- library file
- object library
- weighted sum
- mode
- title
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000010076 replication Effects 0.000 claims abstract description 27
- 238000000034 method Methods 0.000 claims abstract description 11
- 230000006870 function Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 101150053844 APP1 gene Proteins 0.000 description 2
- 101100055496 Arabidopsis thaliana APP2 gene Proteins 0.000 description 2
- 101100189105 Homo sapiens PABPC4 gene Proteins 0.000 description 2
- 102100039424 Polyadenylate-binding protein 4 Human genes 0.000 description 2
- 101100016250 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GYL1 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 244000035744 Hura crepitans Species 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Abstract
The embodiment of the present invention provides a kind of application software method for down loading and device.This method includes:Obtain the title of the corresponding object library file of intended application software;The pre-stored record sheet of name query according to the object library file, the record sheet include multiple entries, and each entry includes the title of library file and the signature of the library file;If there is the entry for the title for including the object library file in the record sheet, the object library file is obtained according to present mode, the present mode includes replication mode and downloading mode.The embodiment of the present invention is by obtaining the title of the corresponding object library file of intended application software, and according to the pre-stored record sheet of the name query, if there is the entry for the title for including object library file in record sheet, then object library file is obtained according to present mode, present mode includes replication mode and downloading mode, the number of the identical library file of terminal repeated downloads is reduced, improves the download efficiency of application software.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of application software method for down loading and device.
Background technology
Docker is an application container engine increased income, and developer can be packaged their application and rely on packet and arrives
In one transplantable container, then it is published on the Linux machines of any prevalence, can also realizes virtualization.Container has been
Sandbox mechanism is entirely used, does not have any interface (app of similar iPhone) between each other.It, can be with almost without performance cost
Easily run in machine and data center.Most importantly, they include system independent of any language, frame.
When now in the art, by application container engine downloading application software, need to download the application in warehouse from network
The corresponding installation software of software and library file, after only installing software and library file whole download, which could quilt
It is just true to use.
But if the corresponding library file of part of the application software is identical in multiple application software of terminal downloads, lead to end
End, which is repeated several times, downloads identical library file, reduces the download efficiency of application software.
Invention content
The embodiment of the present invention provides a kind of application software method for down loading and device, to reduce the identical library text of terminal repeated downloads
The number of part improves the download efficiency of application software.
The one side of the embodiment of the present invention is to provide a kind of application software method for down loading, including:
Obtain the title of the corresponding object library file of intended application software;
The pre-stored record sheet of name query according to the object library file, the record sheet include multiple entries,
Each entry includes the title of library file and the signature of the library file;
If there is the entry for the title for including the object library file in the record sheet, institute is obtained according to present mode
Object library file is stated, the present mode includes replication mode and downloading mode.
The other side of the embodiment of the present invention is to provide a kind of application software download apparatus, including:
Acquisition module, for obtaining the title of the corresponding object library file of intended application software;
Enquiry module, for the pre-stored record sheet of name query according to the object library file, the record sheet
Including multiple entries, each entry includes the title of library file and the signature of the library file;
If the acquisition module is additionally operable to the entry that there is the title for including the object library file in the record sheet,
The object library file is obtained according to present mode, the present mode includes replication mode and downloading mode.
Application software method for down loading and device provided in an embodiment of the present invention, by obtaining the corresponding mesh of intended application software
The title of library file is marked, and according to the pre-stored record sheet of the name query, include object library file if existing in record sheet
Title entry, then according to present mode obtain object library file, present mode include replication mode and downloading mode, reduce
The numbers of the identical library files of terminal repeated downloads improves the download efficiency of application software.
Description of the drawings
Fig. 1 is application software method for down loading flow chart provided in an embodiment of the present invention;
Fig. 2 is the structure chart of application software download apparatus provided in an embodiment of the present invention;
Fig. 3 is the structure chart of application software download apparatus that another embodiment of the present invention provides.
Specific embodiment
Fig. 1 is application software method for down loading flow chart provided in an embodiment of the present invention.The embodiment of the present invention is directed under terminal
The corresponding library file of part of the application software is identical in the multiple application software carried, and terminal is caused to be repeated several times and downloads identical library text
Part reduces the download efficiency of application software, provides application software method for down loading, and this method is as follows:
Step S101, the title of the corresponding object library file of intended application software is obtained;
In embodiments of the present invention, it when terminal downloads intended application software by application container engine, needs to obtain simultaneously
To the corresponding installation software and library file of the intended application software, and will be after installation software and library file be all installed to terminal, it should
Intended application software can be used.For example, terminal wants downloading application software A, first warehouse inquires this using soft from network
Part A corresponding image file image1, image1=APP1+Bins1+Libs3+Bins5, wherein, APP1 is application software A
Corresponding installation software, Bins1, Libs3 and Bins5 are the corresponding library files of application software A, the i.e. library file of application software A
Entitled Bins1, Libs3 and Bins5.
Step S102, according to the pre-stored record sheet of name query of the object library file, the record sheet includes
Multiple entries, each entry include the title of library file and the signature of the library file;
Terminal inquires pre-stored record sheet according to library file Bins1, Libs3 and Bins5 of application software A, described
Record sheet includes multiple entries, and each entry includes the title of library file and the signature of the library file, for example, terminal is being downloaded
Downloading application software B was downloaded before application software A, the corresponding image files of application software B are image2, image2=
APP2+Bins1+Libs1+Bins2+Libs2, wherein, APP2 is the installation software of application software B, Bins1, Libs1,
Bins2, Libs2 are the library files of application software B, and being recorded in record sheet has entry 1:The corresponding signatures of Bins1 and Bins1;Item
Mesh 2:The corresponding signatures of Libs1 and Libs1;Entry 3:The corresponding signatures of Bins2 and Bins2;Entry 4:Libs2 and Libs2 pairs
The signature answered, signature algorithm specifically use hash algorithm.Terminal, which inquires to whether there is in record sheet respectively, includes Bins1, Libs3
Or the entry of Bins5.
If there is the entry for the title for including the object library file in step S103, described record sheet, according to current
Object library file described in pattern acquiring, the present mode include replication mode and downloading mode.
Due to there is the entry for the library file Bins1 for including application software A in record sheet, then institute is obtained according to present mode
Object library file is stated, the present mode includes replication mode and downloading mode.
It is described to obtain the object library file according to present mode, including:If the present mode is replication mode, count
Calculate the signature of the object library file, if the object library file signature with the record sheet in the object library file
The signature of the corresponding library file of title is identical, then from object library file described in local replica;If under the present mode is
Load pattern then downloads the object library file from network in warehouse.
If the present mode is replication mode, the signature of the library file Bins1 of application software A is calculated, if using soft
The signature signature corresponding with the Bins1 stored in record sheet of the library file Bins1 of part A is consistent, illustrates that application software A is corresponding
The corresponding library file Bins1 of library file Bins1 and application software B are same files, and library file Bins1 has been downloaded
It crosses, then terminal copies to library file Bins1 directly from local in the container of installation application software A.If the present mode is
Downloading mode then downloads library file Bins1 from network in warehouse.
The embodiment of the present invention is looked by obtaining the title of the corresponding object library file of intended application software according to the title
Pre-stored record sheet is ask, if there is the entry for the title for including object library file in record sheet, is obtained according to present mode
Object library file is taken, present mode includes replication mode and downloading mode, reduces time of the identical library file of terminal repeated downloads
Number improves the download efficiency of application software.
On the basis of above-described embodiment, if there is no the items for the title for including the object library file in the record sheet
Mesh, then it is in warehouse that the object library file is locally downloading from network;The signature of the object library file is calculated, and by described in
The correspondence of the signature of the title of object library file and the object library file is stored to the record sheet.
For example, the corresponding library file Libs3 and Bins5 of application software A are not in record sheet in above-described embodiment, i.e. terminal
Do not downloaded library file Libs3 and Bins5, then it is in warehouse that Libs3 and Bins5 is locally downloading from network, and count respectively
The signature of Libs3 and Bins5 is calculated, signature algorithm herein is identical with the signature algorithm in above-described embodiment.And by Libs3 and
The signature of Libs3 is stored in as entry 5 in record sheet, and record sheet is stored in using the signature of Bins5 and Bins5 as entry 6
In, in this way, constantly updating the record sheet.
The present mode is true according to the size of local computing capability, local speed of download and the object library file
It is fixed.
The present mode is true according to the size of local computing capability, local speed of download and the object library file
It is fixed, including:If the first weighted sum is more than the second weighted sum, the present mode is replication mode, wherein, first weighting
With the weighted sum of the size for local computing capability and the object library file, second weighted sum is local download speed
The weighted sum of the size of degree and the object library file;If the first weighted sum is less than the second weighted sum, the present mode is
Downloading mode, wherein, weighted sum of first weighted sum for the size of local computing capability and the object library file, institute
State weighted sum of second weighted sum for the size of local speed of download and the object library file.
In embodiments of the present invention, present mode is determining according to local computing capability, local speed of download and institute
The size of object library file is stated, specifically, calculating the first weighting of local computing capability and the size of the object library file
With and the second weighted sum of local speed of download and the size of the object library file is calculated, if the first weighted sum is more than the
Two weighted sums, then the present mode is replication mode, if the first weighted sum is less than the second weighted sum, the present mode is
Downloading mode, i.e., present mode is replication mode when local computing capability is stronger, object library file is bigger, and local download is fast
Degree is faster, object library file more hour present mode is downloading mode.
The embodiment of the present invention determines to work as according to the size of local computing capability, local speed of download and object library file
Premode is replication mode or downloading mode, and the number for reducing the identical library file of terminal repeated downloads while is improved using soft
The download efficiency of part.
Fig. 2 is the structure chart of application software download apparatus provided in an embodiment of the present invention.It is provided in an embodiment of the present invention to answer
The process flow of application software method for down loading embodiment offer can be performed with software download device, as shown in Fig. 2, application software
Download apparatus 20 includes acquisition module 21 and enquiry module 22, wherein, acquisition module 21 corresponds to for obtaining intended application software
Object library file title;Enquiry module 22 is for the pre-stored record of name query according to the object library file
Table, the record sheet include multiple entries, and each entry includes the title of library file and the signature of the library file;Acquisition module
If 21 are additionally operable to the entry that there is the title for including the object library file in the record sheet, institute is obtained according to present mode
Object library file is stated, the present mode includes replication mode and downloading mode.
The embodiment of the present invention is looked by obtaining the title of the corresponding object library file of intended application software according to the title
Pre-stored record sheet is ask, if there is the entry for the title for including object library file in record sheet, is obtained according to present mode
Object library file is taken, present mode includes replication mode and downloading mode, reduces time of the identical library file of terminal repeated downloads
Number improves the download efficiency of application software.
Fig. 3 is the structure chart of application software download apparatus that another embodiment of the present invention provides.In the base of above-described embodiment
On plinth, acquisition module 21 includes computing unit 211, copied cells 212 and download unit 213, wherein, computing unit 211 is used for
If the present mode is replication mode, the signature of the object library file is calculated;If copied cells 212 are used for the target
The signature of library file is identical with the signature of the library file corresponding with the title of the object library file in the record sheet, then
From object library file described in local replica;If download unit 213 is downloading mode for the present mode, from network warehouse
It is middle to download the object library file.
If download unit 213 is additionally operable in the record sheet there is no the entry for the title for including the object library file,
It is then in warehouse that the object library file is locally downloading from network;Computing unit 211 is additionally operable to calculate the object library file
Signature, and by the storage of the correspondence of the title of the object library file and the signature of the object library file to the record
Table.
The present mode is true according to the size of local computing capability, local speed of download and the object library file
It is fixed.
The present mode is true according to the size of local computing capability, local speed of download and the object library file
It is fixed, including:
If the first weighted sum is more than the second weighted sum, the present mode is replication mode, wherein, first weighting
With the weighted sum of the size for local computing capability and the object library file, second weighted sum is local download speed
The weighted sum of the size of degree and the object library file;
If the first weighted sum is less than the second weighted sum, the present mode is downloading mode, wherein, first weighting
With the weighted sum of the size for local computing capability and the object library file, second weighted sum is local download speed
The weighted sum of the size of degree and the object library file.
Application software download apparatus provided in an embodiment of the present invention can be specifically used for performing the method that above-mentioned Fig. 1 is provided
Embodiment, details are not described herein again for concrete function.
The embodiment of the present invention determines to work as according to the size of local computing capability, local speed of download and object library file
Premode is replication mode or downloading mode, and the number for reducing the identical library file of terminal repeated downloads while is improved using soft
The download efficiency of part.
In conclusion the embodiment of the present invention is by obtaining the title of the corresponding object library file of intended application software, and according to
According to the pre-stored record sheet of the name query, if there is the entry for the title for including object library file, foundation in record sheet
Present mode obtains object library file, and present mode includes replication mode and downloading mode, it is identical to reduce terminal repeated downloads
The number of library file improves the download efficiency of application software;According to local computing capability, local speed of download and target
The size of library file determines that present mode for replication mode or downloading mode, reduces the number of the identical library file of terminal repeated downloads
While improve the download efficiency of application software.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied
It closes or is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit
Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) perform the present invention
The part steps of embodiment the method.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module
Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed
Into the internal structure of device being divided into different function modules, to complete all or part of function described above.On
The specific work process of the device of description is stated, the corresponding process in preceding method embodiment can be referred to, details are not described herein.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (6)
1. a kind of application software method for down loading, which is characterized in that including:
Obtain the title of the corresponding object library file of intended application software;
The pre-stored record sheet of name query according to the object library file, the record sheet include multiple entries, each
Entry includes the title of library file and the signature of the library file;
If there is the entry for the title for including the object library file in the record sheet, the mesh is obtained according to present mode
Library file is marked, the present mode includes replication mode and downloading mode;
The present mode is determined according to the size of local computing capability, local speed of download and the object library file;
The present mode determines according to the size of local computing capability, local speed of download and the object library file,
Including:If the first weighted sum is more than the second weighted sum, the present mode is replication mode, wherein, first weighted sum
The weighted sum of size for local computing capability and the object library file, second weighted sum are local speed of download
With the weighted sum of the size of the object library file;If the first weighted sum is less than the second weighted sum, under the present mode is
Load pattern, wherein, weighted sum of first weighted sum for the size of local computing capability and the object library file is described
Weighted sum of second weighted sum for the size of local speed of download and the object library file.
2. according to the method described in claim 1, it is characterized in that, described obtain the object library file according to present mode,
Including:
If the present mode is replication mode, the signature of the object library file is calculated, if the label of the object library file
Name is identical with the signature of the library file corresponding with the title of the object library file in the record sheet, then from local replica
The object library file;
If the present mode is downloading mode, the object library file is downloaded in warehouse from network.
3. it according to the method described in claim 2, it is characterized in that, further includes:
If there is no the entry for the title for including the object library file in the record sheet, from network by the mesh in warehouse
It is locally downloading to mark library file;
Calculate the signature of the object library file, and by the signature of the title of the object library file and the object library file
Correspondence is stored to the record sheet.
4. a kind of application software download apparatus, which is characterized in that including:
Acquisition module, for obtaining the title of the corresponding object library file of intended application software;
Enquiry module, for the pre-stored record sheet of name query according to the object library file, the record sheet includes
Multiple entries, each entry include the title of library file and the signature of the library file;
If the acquisition module is additionally operable to the entry that there is the title for including the object library file in the record sheet, foundation
Present mode obtains the object library file, and the present mode includes replication mode and downloading mode;
The present mode is determined according to the size of local computing capability, local speed of download and the object library file;
The present mode determines according to the size of local computing capability, local speed of download and the object library file,
Including:If the first weighted sum is more than the second weighted sum, the present mode is replication mode, wherein, first weighted sum
The weighted sum of size for local computing capability and the object library file, second weighted sum are local speed of download
With the weighted sum of the size of the object library file;If the first weighted sum is less than the second weighted sum, under the present mode is
Load pattern, wherein, weighted sum of first weighted sum for the size of local computing capability and the object library file is described
Weighted sum of second weighted sum for the size of local speed of download and the object library file.
5. application software download apparatus according to claim 4, which is characterized in that the acquisition module includes:
Computing unit if being replication mode for the present mode, calculates the signature of the object library file;
Copied cells, if the signature for the object library file and the title pair with the object library file in the record sheet
The signature of the library file answered is identical, then from object library file described in local replica;
Download unit if being downloading mode for the present mode, downloads the object library file from network in warehouse.
6. application software download apparatus according to claim 5, which is characterized in that if the download unit be additionally operable to it is described
It, then from network will be under the object library file in warehouse there is no the entry for the title for including the object library file in record sheet
It is downloaded to local;
The computing unit is additionally operable to calculate the signature of the object library file, and by the title of the object library file and described
The correspondence of the signature of object library file is stored to the record sheet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698344.9A CN105204914B (en) | 2015-10-23 | 2015-10-23 | Application software method for down loading and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510698344.9A CN105204914B (en) | 2015-10-23 | 2015-10-23 | Application software method for down loading and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105204914A CN105204914A (en) | 2015-12-30 |
CN105204914B true CN105204914B (en) | 2018-06-19 |
Family
ID=54952614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510698344.9A Active CN105204914B (en) | 2015-10-23 | 2015-10-23 | Application software method for down loading and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105204914B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107038045B (en) * | 2017-03-30 | 2022-10-14 | 腾讯科技(深圳)有限公司 | Method and device for loading library file |
CN107135077B (en) * | 2017-05-05 | 2019-08-06 | 中国联合网络通信集团有限公司 | Software protecting method and device |
CN110096272A (en) * | 2019-03-19 | 2019-08-06 | 深圳壹账通智能科技有限公司 | Library file processing method, device, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197840A (en) * | 2007-12-29 | 2008-06-11 | 深圳市迅雷网络技术有限公司 | Method, system and device for downloading and storing files and method for generating identification |
CN104219323A (en) * | 2014-09-18 | 2014-12-17 | 深圳市中兴移动通信有限公司 | Application downloading method and mobile terminal |
-
2015
- 2015-10-23 CN CN201510698344.9A patent/CN105204914B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197840A (en) * | 2007-12-29 | 2008-06-11 | 深圳市迅雷网络技术有限公司 | Method, system and device for downloading and storing files and method for generating identification |
CN104219323A (en) * | 2014-09-18 | 2014-12-17 | 深圳市中兴移动通信有限公司 | Application downloading method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105204914A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108053211B (en) | Transaction processing method and device based on block chain | |
CN103580908B (en) | The collocation method of server and system | |
CN106415494B (en) | Enhanced updating of digital content | |
US8667489B2 (en) | Systems and methods for sharing the results of analyses among virtual machines | |
US20160232374A1 (en) | Permission control method and apparatus | |
CN105760184B (en) | A kind of method and apparatus of charging assembly | |
CN105930197A (en) | Software upgrading method and electronic equipment | |
CN105204914B (en) | Application software method for down loading and device | |
CN106357738A (en) | Automatic arrangement method for server cluster and device as well as system thereof | |
CN103235912B (en) | Trusted process recognition device and trusted process recognition methods | |
CN106528601A (en) | Method and device for dynamically configuring module | |
US10417192B2 (en) | File classification in a distributed file system | |
CN109908585A (en) | A kind of document handling method and system calculate equipment and storage medium | |
CN103593233A (en) | Method and system for pushing software information | |
CN110045998A (en) | Load the method and device of dynamic base | |
EP3059692B1 (en) | System and method for antivirus checking of objects from a plurality of virtual machines | |
CN106325925A (en) | Browser service information updating method and device | |
CN105159619B (en) | The extended method and device of a kind of virtual memory | |
CN112596825B (en) | Cloud desktop starting method and device | |
CN106033434B (en) | Fictitious assets data copy processing method based on data scale and popularity degree | |
CN109803160B (en) | Resource allocation method, device and system | |
CN111106945B (en) | VNF instantiation method, device, equipment and storage medium | |
CN112764897A (en) | Method, device and system for processing task request and computer readable storage medium | |
CN108958902B (en) | Graph calculation method and system | |
CN110209402A (en) | Using installation method, electronic equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |