Universal delta set management
US-9779119-B2 · Oct 3, 2017 · US
US10048959B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10048959-B2 |
| Application number | US-201415315272-A |
| Country | US |
| Kind code | B2 |
| Filing date | Sep 18, 2014 |
| Priority date | May 30, 2014 |
| Publication date | Aug 14, 2018 |
| Grant date | Aug 14, 2018 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Disclosed is a method and an apparatus for incremental upgrade. When a server generates an incremental file, it acquires sub-files of different types in an old version compressed file and a new version compressed file, and performs different difference comparison steps on the sub-files of different types, to obtain difference data files for corresponding types: for sub-files that satisfy a preset decompression condition, a decompression comparison method is used to perform difference comparison, and for sub-files that do not satisfy the preset decompression condition, a direct comparison method is used to perform difference comparison; subsequently, a client acquires the difference data files from the server, and according to the type of a difference data file, carries out a merge operation on the difference data file and the old version compressed file to obtain the new version compressed file.
Opening claim text (preview).
What is claimed is: 1. A method for incremental upgrade, comprising: acquiring, by a server, a second type sub-file, wherein the second type sub-file is in both a new version compressed file and an old version compressed file, and each of the second type sub-file in the new version compressed file and the second type sub-file in the old version compressed file satisfies a preset decompression condition; decompressing, by the server, the second type sub-file in the new version compressed file and the second type sub-file in the old version compressed file, and performing, by the server, difference comparison to obtain a first difference data file, comprising: writing, by the server, a file data header of the second type sub-file in the new version compressed file into a memory; decompressing the second type sub-file in the new version compressed file and the second type sub-file in the old version compressed file; performing difference comparison to obtain the first difference data file; writing the first difference data file to a memory address of the file data header of the second type sub-file in the memory; after writing the first difference data file to the memory address of the file data header of the second type sub-file in the memory, storing the first difference data file in the memory continuously with the second type sub-file; and obtaining the first difference data file according to the file data header of the second type sub-file and the first difference data file in continuous storage; and according to the first difference data file, generating, by the server, an incremental file for a client to perform incremental upgrade. 2. The method for incremental upgrade according to claim 1 , wherein the preset decompression condition comprises: a size of a file before compression greater than a preset byte value, and a compression ratio smaller than a preset ratio; wherein the compression ratio is a ratio of a size of a file after compression to the size of the file before compression. 3. The method for incremental upgrade according to claim 1 , further comprising: acquiring, by the server, a third type sub-file, wherein the third type sub-file is in both the new version compressed file and the old version compressed file, and at least one of the third type sub-file in the new version compressed file and the third type sub-file in the old version compressed file does not satisfy the preset decompression condition; performing, by the server, difference comparison between the third type sub-file in the new version compressed file and the third type sub-file in the old version compressed file without decompression, to obtain a second difference data file, comprising: determining, by the server, that a plurality of third type sub-files with continuous memory addresses exist in the new version compressed file; determining, by the server, that a corresponding plurality of third type sub-files in the old version compressed file also have continuous memory addresses; using the plurality of third type sub-files with continuous memory addresses in the new version compressed file as a first integral file; using the plurality of third type sub-files with continuous memory addresses in the old version compressed file as a second integral file; and performing difference comparison between the first integral file and the second integral file without decompression to obtain the second difference data file. 4. The method for incremental upgrade according to claim 3 , further comprising acquiring, by the server, a first type sub-file, wherein the first type sub-file is in the new version compressed file and not in the old version compressed file, wherein generating the incremental file for the client to perform incremental upgrade is further according to the first type sub-fileand the second difference data file. 5. The method for incremental upgrade according to claim 1 , wherein, before acquiring, by the server, the second type sub-file, the method further comprises: receiving, by the server, a file upgrade request sent from the client; and upon receiving the file upgrade request, carrying out, by the server, the step of acquiring the second type sub-file. 6. The method for incremental upgrade according to claim 1 , further comprising acquiring, by the server, a first type sub-file, wherein the first type sub-file is in the new version compressed file and not in the old version compressed file, wherein generating the incremental file for the client to perform incremental upgrade is further according to the first type sub-file. 7. A method for incremental upgrade, comprising: acquiring, by a client, an incremental file from a server, wherein the incremental file comprises a first difference data file, wherein the first difference data file is a file obtained by decompressing a second type sub-file in a new version compressed file and the second type sub-file in a corresponding old version compressed file, and performing difference comparison, comprising: writing, by the server, a file data header of the second type sub-file in the new version compressed file into a memory; decompressing the second type sub-file in the new version compressed file and the second type sub-file in the corresponding old version compressed file; performing difference comparison to obtain the first difference data file; writing the first difference data file to a memory address of the file data header of the second type sub-file in the memory; after writing the first difference data file to the memory address of the file data header of the second type sub-file in the memory, storing the first difference data file in the memory continuously with the second type sub-file; and obtaining the first difference data file according to the file data header of the second type sub-file and the first difference data file in continuous storage; wherein each of the second type sub-file in the new version compressed file and the second type sub-file in the corresponding old version compressed file satisfies a preset decompression condition; and using, by the client, the incremental file to obtain the new version compressed file, wherein the using comprises: decompressing the second type sub-file in the corresponding old version compressed file; merging the decompressed second type sub-file with the first difference data file to obtain a first merged sub-file; compressing the first merged sub-file to obtain a first compressed sub-file; and using at least the first compressed sub-file to obtain the new version compressed file. 8. The method for incremental upgrade according to claim 7 , further comprising: reading, by the client, a file data header of the first difference data file; storing, by the client, the file data header of the first difference data file; reading the second type sub-file in the corresponding old version compressed file corresponding to the first difference data file; after reading the second type sub-file, decompressing the second type sub-file; merging the decompressed second type sub-file with the first difference data file to obtain the first merged sub-file; and compressing the file data header and the first merged sub-file to obtain the first compressed sub-file. 9. The method for incremental upgrade according to claim 7 , wherein the preset decompression condition comprises: a size of a file before compression is greater than a preset byte value, and a compression ratio is smaller than a preset ratio; wherein the compression ratio is a ratio of a size of a file after compression to the size of the file before compression. 10. The method for incremental upgrade according to claim 7 , wherein the increm
involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416) · CPC title
Incremental updates; Differential updates · CPC title
Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.