Unlock instant, AI-driven research and patent intelligence for your innovation.

Difference information file generation and application method and device

A technology for generating difference information and files, applied in the computer field, can solve problems such as redundancy of difference information, achieve the effect of reducing size and optimizing difference information

Active Publication Date: 2018-09-04
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem in the prior art that due to comparing the binary data streams of the original Dex file and the new Dex file, all the changed binary strings in the binary data stream are used as difference information, resulting in a large amount of redundancy in the generated difference information, The embodiment of the present invention provides a difference information file generation and application method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Difference information file generation and application method and device
  • Difference information file generation and application method and device
  • Difference information file generation and application method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0047] In this application, in order to reduce the size of the difference information file as much as possible, the data in the installation package file is organized and divided into sections. The installation package mentioned here is a file with sections and data items organized, such as a Dex file organized according to sections and data items.

[0048] For the structure of the installation package file, please refer to figure 1 As shown, each section includes at least one data item, and the attributes of each data item include the former one or two of index number and file offset. The index number is the number of data items in the same section, The file offset indicates data items of other sections referenced by the data item, a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a difference information file generation and application method and device, and belongs to the technical field of a computer. The method comprises the steps of: acquiring an original installation package file and an upgrade installation package file; for an ith section in the original installation package file, comparing a data item of the ith section in the original installation package file with a data item of the ith section in the upgrade installation package file to obtain difference information of the ith section, wherein an initial value of i is 1; adding the difference information of the ith section into a different information file; when i is smaller than n, enabling a formula i=i+1 to be met, and executing the comparing step again; and when i is equal to n, obtaining the difference information file. According to the difference information file generation and application method and device disclosed by the invention, data in the installation package files is organized in sections, and the data items of the same section in the original installation package and the upgrade installation package file are sequentially compared to determine a difference of each section between two files, and thus, difference information between the original installation package file and the upgrade installation package file is optimized, and the size of the difference information file is reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for generating and applying difference information files. Background technique [0002] The virtual machine executable format (English: dalvik executable format, referred to as: Dex) file refers to a file format that can be recognized by the Java virtual machine on the Android (English: android) operating system to describe a series of classes and related data. [0003] In the related art, when obtaining the difference information file used to define the difference information between the original Dex file and the new Dex file, first compare the binary data streams of the original Dex file and the new Dex file, and find the longest unchanged binary string , and then save other changed binary strings and their additions, deletions, and modifications as difference information between the two files in the difference information file. When applying the differen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/174G06F16/188
Inventor 唐胤晟
Owner TENCENT TECH (SHENZHEN) CO LTD