Technique for updating file
The remote system generates patch files by identifying similar portions between file versions, reducing bandwidth and processing time by transmitting only unique data, addressing the inefficiencies in updating complex and large files.
Patent Information
- Application Number
- JP2024083003
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-01-30
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-24
AI Technical Summary
Sending updated files to electronic devices requires significant network bandwidth and time due to increasing file complexity and size, leading to inefficient file updates.
A remote system generates patch files by identifying similar portions between a first and second version of a file, transmitting only unique portions along with a manifest to reconstruct the updated file, using techniques like fingerprinting, hashing, and compression to reduce bandwidth and processing requirements.
This method reduces network bandwidth and processing time by transmitting only necessary data, enabling efficient file updates without the need to send entire files, thus optimizing network resources.
Smart Images

Figure 2024116161000001_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. patent application Ser. No. 16 / 262,431, entitled "TECHNIQUES FOR UPDATING FILES," filed Jan. 30, 2019, the entire contents of which are incorporated herein by reference. [Technical field]
[0002] [Background technology] The remote system may send files to the electronic device over a network, such as the Internet. Developers of these files may update these files and provide the updated versions to the remote system. These updated files may then be provided to the electronic device in response to a request from the device or otherwise. However, as files increase in complexity and size, sending updated files to the electronic device may require a significant amount of network bandwidth and may take a relatively long length of time to be stored on the device. [Brief description of the drawings]
[0003] The detailed description will now be described with reference to the accompanying drawings, in which the leftmost digit(s) of a reference number refers to the figure in which the reference number first appears, and the use of the same reference number in different figures indicates similar or identical components or functionality.
[0004] [Figure 1] FIG. 1 illustrates an example environment that includes a remote system configured to generate a patch file for updating a file from a first version of the file to a second version of the file.
[0005] [Diagram 2]1 is an example of identifying portions of a first version of a file that may be similar to portions of a second version of the file to generate a patch for updating an instance of the first version to the second version of the file.
[0006] [Diagram 3] 1 is an example of a remote system configured to generate patch files for various versions of a file.
[0007] [Figure 4A] FIG. 1 is a flow diagram of an example process for generating data for updating a file from a first version to a second version. [Figure 4B] FIG. 1 is a flow diagram of an example process for generating data for updating a file from a first version to a second version.
[0008] [Diagram 5] 1 is a flowchart of a first exemplary process for identifying a portion of a first data that is similar to a portion of a second data.
[0009] [Figure 6] 11 is a flowchart of a second exemplary process for identifying a portion of a first data that is similar to a portion of a second data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Described herein are, among other things, techniques, devices, and systems for efficiently updating files. For example, a remote system may generate, receive, and / or store data (referred to as "first data" in this example) representing a first version of a file. The file may represent a game, a video, a document, etc. In some cases, the file may be provided to the remote system by a third party, such as a game developer. The remote system may then receive a request for the file from one or more electronic devices, such as a personal computer, a laptop computer, a game console, a tablet computer, etc. In response, the remote system may transmit the first data representing the first version of the file to the one or more electronic devices. In some examples, to transmit the first data, the remote system may first divide the first data into contiguous portions, such as one megabyte portions. After dividing the first data, the remote system may transmit the portions to one electronic device at a time. In some cases, the remote system may further transmit a manifest to the one or more electronic devices, the manifest defining an order for reassembling the portions of the first data on the electronic devices to generate the first version of the file. Upon receiving the manifest and each portion of the first data, the electronic device may generate a first version of the file such that the device may execute or otherwise render each instance of the file.
[0011] The remote system may subsequently generate, receive, and / or store data (referred to in this example as "second data") representing a second, updated version of the file. To generate the second data, the developer of the file may add, remove, and / or modify data from the first version of the file. The remote system may then transmit the second data to one or more electronic devices, which the one or more electronic devices may use to update the first version of the file to the second version of the file. In some examples, to conserve computing resources such as network bandwidth, the remote system may transmit a portion of the second data to the one or more electronic devices. The one or more electronic devices may then "patch" the first data with a portion of the second data to update the first version of the file to the second version of the file. In some cases, this patch file is pushed to the electronic devices that store the first version of the file, while in other cases, the patch file is transmitted to the electronic devices in response to the remote system receiving respective requests from these devices.
[0012] To generate the patch file, the remote system may begin by dividing the portion of the second data into contiguous portions that may be of the same or similar size (e.g., 1 megabyte) as the contiguous portions of the first data. The remote system may then analyze the portion of the first data with respect to the portion of the second data to identify similarities between the portion(s) of the first data and the portion(s) of the second data. For example, the remote system may "pass through" the second data to identify matching portions, such as portions of the first data that match portions of the second data.
[0013] In some examples, to analyze the portion of the first data against the portion of the second data, the remote system may fingerprint or tag the portion. For a first example, the remote system may utilize a cyclic redundancy check (CRC) to generate a first check value associated with the portion of the first data and a second check value associated with the portion of the second data. The remote system may then compare the first check value with the second check value to identify the first check value(s) that match the second check value(s). Based on identifying the match(s), the remote system may identify the portion(s) of the first data that correspond to the portion(s) of the second data (e.g., include the same data as the portion(s) of the second data). For a second example, the remote system may utilize a Secure Hash Algorithm 1 (SHA-1) to generate the first hash value associated with the portion of the first data and the second hash value associated with the portion of the second data. The remote system may then compare the first hash value to the second hash value to identify the first hash value(s) that match the second hash value(s). Based on the match, the remote system may identify a portion(s) of the first data that corresponds to a portion(s) of the second value. Of course, although several exemplary techniques for identifying matching portions are described, it should be understood that the remote system may utilize any other technique for identifying such matching portions.
[0014] In some examples, the remote system may then store the unique portion(s) of the second data (e.g., the portion(s) of the second data that do not correspond to the portions of the first data). In addition, the remote system may generate a manifest that indicates an order for reconstructing the second version of the file using some portions of the first version of the file and portions of the second version of the file that are new or unique to the second version. Unless otherwise stated, the manifest may define an order for reconstructing (1) the portion(s) of the first data that correspond to the portion(s) of the second data, and (2) the unique portion(s) of the second data. The remote system may then transmit the unique portion(s) of the second data to one or more electronic devices along with a manifest for reconstructing the second version of the file. The one or more electronic devices may then reconstruct the second version of the file using the portion(s) of the first data that correspond to the portion(s) of the second data stored on the one or more electronic devices, the received unique portion(s) of the second data, and the manifest. Thus, in some examples, instead of transmitting the entirety of the second data to one or more electronic devices, the remote system may transmit a unique portion(s) of the second data along with the manifest, which may reduce network bandwidth and reduce the amount of time it takes to update a client device from a first version of the file to a second version of the file.
[0015] In some examples, the unique portion of the second data may be sufficiently similar to a portion of the first data that the unique portion of the second data may be converted into a portion of the first data with minimal instructions. For example, the difference between the unique portion of the second data and the portion of the first data may include one or more bytes of data added to, removed from, or modified within the portion of the first data. Thus, prior to and / or instead of transmitting the unique portion(s) of the second data to the one or more electronic devices, the remote system may first determine whether the unique portion(s) may be converted into one of the portions of the first data. Based on determining that the unique portion of the second data may be converted into a portion of the first data, the remote system may generate data representing instructions for converting the unique portion of the second data into a portion of the first data. The remote system may then perform a similar process for the other unique portion(s) that may be converted into a portion of the first data. Using this data, the remote system may generate a patch file and transmit the patch file to the one or more electronic devices.
[0016] For example, the remote system may use the process described above to identify that a first portion of the first data corresponds to a first portion of the second data. The remote system may then use the similarity to identify a second portion of the second data (e.g., a unique portion) that may be converted to the second portion of the first data. In some examples, the remote system identifies the second portion of the second data as a "neighbor" to the first portion of the second data and identifies the second portion of the first data as a "neighbor" to the first portion of the first data. For a first example, the second portion of the second data may include a portion of the second data that precedes the first portion of the second data, and the second portion of the first data may include a portion of the first data that precedes the first portion of the first data. For a second example, the second portion of the second data may include a portion of the second data that follows the first portion of the second data, and the second portion of the first data may include a portion of the first data that follows the first portion of the first data.
[0017] The remote system may then generate data representing a difference between the second portion of the second data and the second portion of the first data. Based on determining that the difference does not meet the threshold difference, the remote system may determine that the second portion of the second data is not similar to the second portion of the first data. However, based on determining that the difference meets the threshold difference, the remote system may determine that the second portion of the second data is similar to the second portion of the first data. The remote system may then store the data representing the difference as at least a portion of a patch file for the second version of the file.
[0018] In some examples, the remote system may use compression to determine whether the second portion of the second data is similar to the second portion of the first data. For example, the remote system may compress the second portion of the first data using one or more algorithm(s) (e.g., Lempel-Ziv-Markov chain algorithm (LZMA)), Lempel-Ziv-Welch (LZW), British Telecom Lempel Ziv (BTLZ), LZ77, LZ78, etc.). Based on the compression, the remote system may generate first compressed data for the second portion of the first data. The remote system may further use the algorithm(s) to compress the second portion of the second data. Based on the compression, the remote system may generate second compressed data for the second portion of the second data. Additionally, the remote system may use the algorithm(s) and the first compressed data to re-compress the second portion of the second data. For example, the remote system may use the first compressed data as a base to generate third compressed data, where the third compressed data represents a difference between a second portion of the first data and a second portion of the second data.
[0019] The remote system may then determine a difference between the second compressed data and the third compressed data. The remote system may then determine whether the difference meets a threshold difference. For a first example, the remote system may determine a size difference between the second compressed data and the third compressed data. The remote system may then determine whether the size difference meets a size threshold. For example, if the size difference is 0.5 megabytes and the size threshold is 0.75 megabytes, the remote system may determine that the size difference meets (e.g., is within) the size threshold. For a second example, the remote system may determine a ratio (e.g., difference) of the size of the third compressed data to the size of the second compressed data. The remote system may then determine whether the ratio meets a threshold. For example, if the second compressed data includes a size of 0.5 megabytes and the third compressed data includes a size of 0.8 megabytes, the remote system may determine that the ratio of the size of the second compressed data to the size of the second compressed data is 0.625. If the threshold includes 0.8, the remote system may determine that the ratio meets (e.g., is within) the threshold. For example, the remote system may determine that a ratio of 0.625 is within (e.g., less than) the threshold of 0.8. In some examples, the smaller the ratio, the more similar the second portion of the second data is to the second portion of the first data.
[0020] In some examples, the compressed data may include a dictionary and / or criteria. For example, the remote system may use an algorithm(s) to compress the second portion of the first data. Based on the compression, the remote system may generate a first dictionary and a first criterion (e.g., a first sequence of symbol and phrase criteria). The remote system may further use an algorithm(s) to compress the second portion of the second data. Based on the compression, the remote system may generate a second dictionary and a second criterion (e.g., a second sequence of symbol and phrase criteria). In addition, the remote system may again compress the second portion of the second data using the algorithm(s) and the first dictionary. For example, the remote system may use the first dictionary as a base to generate a third dictionary and / or a third criterion (e.g., a third sequence of symbol and phrase criteria), where the third dictionary and / or the third criterion represent a difference between the second portion of the first data and the second portion of the second data.
[0021] For example, in some instances, if the second portion of the second data and the second portion of the first data have a high degree of similarity, e.g., differing by a few bytes of data, the third dictionary and / or the third criteria are deemed similar to the first dictionary and / or the first criteria. Additionally, if the second portion of the second data and the second portion of the first data are dissimilar, the third dictionary and / or the third criteria are deemed not similar to the first dictionary and / or the first criteria.
[0022] The remote system may then determine a difference between the second dictionary and the third dictionary. The remote system may then determine whether the difference meets a threshold difference. In a first example, the remote system may determine a size difference between the second dictionary and the third dictionary. The remote system may then determine whether the size difference meets a size threshold. For example, if the size difference is 0.5 megabytes and the size threshold is 0.75 megabytes, the remote system may determine that the size difference meets (e.g., is within) the size threshold. For a second example, the remote system may determine a ratio (e.g., difference) between the size of the third dictionary and the size relative to the second dictionary. The remote system may then determine whether the ratio meets (e.g., is within) the threshold. For example, if the second dictionary includes a size of 0.5 megabytes and the third dictionary includes a size of 0.8 megabytes, the remote system may determine that the ratio between the size of the second dictionary and the size of the second dictionary is 0.625. If the threshold includes 0.8, the remote system may determine that the ratio meets (e.g., is within) the threshold. For example, the remote system may determine that a ratio of 0.625 is within (e.g., less than) a threshold of 0.8. In some examples, the smaller the ratio, the more similar the second portion of the second data is to the second portion of the first data.
[0023] In some examples, based on determining that the difference meets the threshold, the remote system may store data representing the difference (e.g., at least a portion of the third compressed data, at least a portion of the third dictionary that differs from the first dictionary and / or the third criterion, etc.) as part of a patch file of the second version of the file. In addition, the remote system may perform a similar process to generate additional data representing the difference(s) of one or more other portion(s) of the second data that the remote system determines to be similar to a portion of the first data. The remote system may then store the additional data as part of the patch file. In some examples, the remote system may then transmit the patch file to one or more electronic devices in place of the unique portion(s) of the second data that the remote system determined to be similar to the portion(s) of the first data. By transmitting the patch file, the remote system may further conserve computing resources, such as network bandwidth.
[0024] In some examples, the remote system may perform a similar process to update other versions of the file. For example, the remote system may store data (referred to as "third data" in this example) representing a third version of the file. The remote system may then identify the portion(s) of the third data that correspond to the portion(s) of the second data, generate patch file(s) for the unique portion(s) of the third data that are found to be similar to the portion(s) of the second data, and identify the portion(s) of the third data that are not similar to the portion(s) of the second data. The remote system may then transmit the patch file(s) for the unique portion(s) of the third data that are found to be similar to the portion(s) for the second data and the portion(s) of the third data that are not similar to the portion(s) of the second data to one or more electronic devices.
[0025] In some examples, if there are multiple versions of a file, the remote system may perform the above-described process for one or more pairs of versions of the file. In a first example, if there are four versions of a file, the remote system may perform the above-described process for updating the first version to a second version, the first version to a third version, the first version to a fourth version, the second version to a third version, the second version to a fourth version, and / or the third version to a fourth version. In a second example, the remote system may perform the above-described process for the most common updates. For example, if one electronic device updates the first version to a fourth version and 50 electronic devices update the third version to a fourth version, the remote system may perform the above-described process for updating the third version of the fourth version, but the remote system may not perform the above-described process for updating the first version to the fourth version.
[0026] It should be noted that in some examples, when analyzing the identified portion of the second data with respect to the identified portion of the first data, the remote system may determine that the identified portion of the second data is similar to the identified portion of the first data. In such examples, the remote system may then determine that the identified portion of the second data corresponds to the identified portion of the first data. In addition, the remote system may use the "neighbors" of the identified portion of the second data and the identified portion of the first data to perform the process described above.
[0027] In some examples, by performing the above-described process (e.g., by using the match portion(s)), the remote system may more easily identify a portion(s) of the first data that may correspond to a portion(s) of the second data. This may reduce the need for the remote system to analyze each portion of the first data to each portion of the second data, which may reduce the amount of processing performed by the remote system. Thus, by performing the above-described process, the remote system may require fewer computing resources when processing the first data and the second data.
[0028] FIG. 1 illustrates an example environment 100 including a remote system 102 configured to generate a patch file for updating a file from a first version 104 of a file to a second version 106 of the file. In some examples, the file may correspond to a game. For example, the first version 104 of the file may correspond to a first version of the game and the second version 106 of the file may correspond to an updated second version of the game. In other examples, the file may correspond to an application, a program, a document, a video, an image, etc. In some examples, the remote system 102 may receive the first version 104 and / or the second version 106 of the file from one or more computing devices associated with a developer of the file.
[0029] At a first time, remote system 102 may transmit first data 110 representing first version 104 of file over network 108 to one or more electronic devices, such as first electronic device 112(1), second electronic device 112(2), and third electronic device 112(3). Although for clarity purposes only three electronic devices 112(1)-(3) are illustrated, in other examples, remote system 102 may transmit first data 110 to any number of electronic devices.
[0030] In some examples, to transmit the first data 110 to the electronic device(s) 112(1)-(3), the remote system 102 may utilize the partition component 114 to identify portions 116(1)-(6) of the first data 110. The portions 116(1)-(6) may include contiguous sections of the first data 110. In some examples, the portions 116(1)-(6) of the first data 110 may include any size. For example, the portions 116(1)-(6) may include, but are not limited to, a 500 byte contiguous section of the first data 110, a 1 megabyte contiguous section of the first data 110, a 5 megabyte contiguous section of the first data 110, etc. The remote system 102 may then transmit the portions 116(1)-(6) of the first data 110 to the electronic devices 112(1)-(3). Additionally, in some examples, remote system 102 may send data representing manifest 118 to electronic devices 112(1)-(3). Manifest 118 may define an order for reconstructing portions 116(1)-(6) of first data 110 on electronic devices 112(1)-(3) to generate first version 104 of file.
[0031] Later, the remote system 102 may generate, receive, and / or store second data 120 representing the second version 106 of the file. To generate the second data 120, data may be added to, removed from, modified within the first data 110, etc. Using the first data 110 and the second data 120, the remote system 102 may generate a patch to update the first version 104 of the file to the second version 106 of the file on the electronic devices 112(1)-(3). For example, the remote system 102 may utilize a partition component 114 that identifies portions 116(1), 116(4), 116(6), and 116(7)-(9) of the second data 120. The portions 116(1), 116(4), 116(6), and 116(7)-(9) may comprise contiguous sections of the second data. In some examples, portions 116(1), 116(4), 116(6), and 116(7)-(9) of second data 120 may include any size. For example, portions 116(1), 116(4), 116(6), and 116(7)-(9) may include, but are not limited to, a 500 byte contiguous section of first data 110, a 1 megabyte contiguous section of first data 110, a 5 megabyte contiguous section of first data 110, etc.
[0032] The remote system 102 may then utilize a matching component 122 to analyze the portions 116(1)-(6) of the first data 110 against the portions 116(1), 116(4), 116(6), and 116(7)-(9) of the second data 120 to identify similarities between the portion(s) of the first data 110 and the portion(s) of the second data 120. In some examples, to perform the analysis, the matching component 122 may fingerprint or tag the portions 116(1)-(9). For the first example, the matching component 122 may utilize a CRC to generate a first check value 124 associated with the portions 116(1)-(6) of the first data 110, as well as a second check value 124 associated with the portions 116(1), 116(4), 116(6), and 116(7)-(9) of the second data 120. The matching component 122 may then compare the first check value 124 to the second check value 124 to identify a portion(s) of the first data 110 that corresponds to (e.g., contains the same data as) a portion(s) of the second data 120.
[0033] For example, as shown in the example of FIG. 1 , the matching component 122 may determine that the check value 124 associated with the portion 116(1) of the first data 110 matches the check value 124 associated with the portion 116(1) of the second data 120. Thus, the matching component 122 may determine that the portion 116(1) of the first data 110 corresponds to the portion 116(1) of the second data 120. In addition, the matching component 122 may determine that the check value 124 associated with the portion 116(4) of the first data 110 matches the check value 124 associated with the portion 116(4) of the second data 120. Thus, the matching component 122 may determine that the portion 116(4) of the first data 110 corresponds to the portion 116(4) of the second data 120. Further, matching component 122 may determine that check value 124 associated with portion 116(6) of first data 110 matches check value 124 associated with portion 116(6) of second data 120. Thus, matching component 122 may determine that portion 116(6) of first data 110 corresponds to portion 116(6) of second data 120.
[0034] For the second example, and in addition to or alternatively to utilizing a CRC, matching component 122 may utilize SHA-1 to generate a first hash value 124 associated with portions 116(1)-(6) of first data 110, as well as a second hash value 124 associated with portions 116(1), 116(4), 116(6), and 116(7)-(9) of second data 120. Matching component 122 may then compare first hash value 124 to second hash value 124 to identify the portion(s) of first data 110 that correspond to the portion(s) of second data 120.
[0035] 1 , the matching component 122 may determine that the hash value 124 associated with the portion 116(1) of the first data 110 matches the hash value 124 associated with the portion 116(1) of the second data 120. Thus, the matching component 122 may determine that the portion 116(1) of the first data 110 corresponds to the portion 116(1) of the second data 120. Additionally, the matching component 122 may determine that the hash value 124 associated with the portion 116(4) of the first data 110 matches the hash value 124 associated with the portion 116(4) of the second data 120. Thus, the matching component 122 may determine that the portion 116(4) of the first data 110 corresponds to the portion 116(4) of the second data 120. Further, matching component 122 may determine that hash value 124 associated with portion 116(6) of first data 110 matches hash value 124 associated with portion 116(6) of second data 120. Thus, matching component 122 may determine that portion 116(6) of first data 110 corresponds to portion 116(6) of second data 120.
[0036] In some examples, the matching component 122 further identifies a unique portion(s) of the second data 120. For example, as shown in the example of FIG. 1, the matching component 122 may determine that the check value 124 and / or hash value 124 associated with the portion 116(7)-(9) of the second data 120 does not match the check value 124 and / or hash value 124 associated with the portion 116(1)-(7) of the first data 110. Thus, the matching component 122 may determine that the portion 116(7)-(9) of the second data 120 includes a unique portion. In some examples, when the electronic devices 112(1)-(3) update a file, the remote system 102 may send the unique portion 116(7)-(9) of the second data 120 to the electronic devices 112(1)-(3) along with the data representing the manifest 118. Manifest 118 may define an order for generating second version 106 of the file by reconstructing portions 116(1), 116(4), 116(6) of first data 110 and unique portions 116(7)-(9) of second data 120 already stored on electronic devices 112(1)-(3).
[0037] However, in some examples, the unique portion of the second data 120 may be sufficiently similar to one of the portions 116(1)-(6) of the first data 110 such that the unique portion of the second data 120 may be converted to the portions 116(1)-(6) of the first data 110 with minimal instructions. For example, the difference between the unique portion of the second data 120 and the portions 116(1)-(6) of the first data 110 may include one or more bytes of data that have been added to, removed from, or modified within the portions 116(1)-(6) of the first data 110. Thus, prior to and / or instead of transmitting the unique portions 116(7)-(9) of the second data 120 to the electronic devices 112(1)-(3), the remote system 102 may first determine whether the unique portions 116(7)-(9) may be converted to one of the portions 116(1)-(6) of the first data 110. Based on determining that the unique portion of the second data 120 can be converted to the portions 116(1)-(6) of the first data 110, the remote system 102 may generate data representing instructions for converting the unique portion of the second data 120 to the portions 116(1)-(6) of the first data 110. The remote system 102 may then perform a similar process for the other unique portion(s) that can be converted to the portions 116(1)-(6) of the first data 110. Using this data, the remote system 102 may generate a patch file 126 and transmit the patch file 126 to the electronic devices 112(1)-(3).
[0038] For example, the matching component 122 may identify that portion 116(4) of the first data 110 corresponds to portion 116(4) of the second data 120. The matching component 122 may then use the similarity to identify a portion (e.g., a unique portion) of the second data 120 that can be transformed into a portion of the first data 110. In some examples, the matching component 122 identifies a portion of the portion of the second data 120 as a "neighbor" to portion 116(4) of the second data 120 and identifies a portion of the portion of the first data 110 as a "neighbor" to portion 116(4) of the first data 110. For a first example, the matching component 122 may identify portion 116(8) of the second data 120 that precedes portion 116(4) of the second data 120 and portion 116(3) of the first data 110 that precedes portion 116(4) of the first data 110. For the second example, matching component 122 may identify portion 116(9) of second data 120 that follows portion 116(4) of second data 120, and portion 116(5) of first data 110 that follows portion 116(4) of first data 110.
[0039] The remote system 102 may then generate data representing the differences between the identified portion of the second data 120 and the identified portion of the first data 110. Based on determining that the difference does not meet the threshold 130, the remote system 102 may determine that the identified portion of the second data 120 is not similar to the identified portion of the first data 110. However, based on determining that the difference meets the threshold difference, the remote system 102 may determine that the identified portion of the second data 120 is similar to the identified second portion of the first data 110. The remote system 102 may then store the data representing the differences in a patch file 126 for the second version 106 of the file.
[0040] In some examples, the remote system 102 may use compression to determine whether the identified portion of the second data 120 is similar to the identified portion of the first data 110. For example, using the subsequent portions of the first data 110 and the second data 120, the remote system 102 may utilize the compression component 128 to compress the portion 116(5) of the first data 110 and the portion 116(9) of the second data. For example, the compression component 128 may compress the portion 116(5) of the first data 110 using an algorithm(s) (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.). Based on the compression, the compression component 128 may generate first compressed data for the portion 116(5) of the first data 110. The compression component 128 may further use the algorithm(s) to compress the portion 116(9) of the second data 120. Based on the compression, the compression component 128 may generate second compressed data for the portion 116(9) of the second data 120. Additionally, the compression component 128 may use the algorithm(s) and the first compressed data to again compress the portion 116(9) of the second data 120. For example, the compression component 128 may use the first compressed data as a base to generate third compressed data, where the third compressed data represents the difference between the portion 116(5) of the first data 110 and the portion 116(9) of the second data 120.
[0041] The remote system 102 may then determine a difference between the second compressed data and the third compressed data. The Analytical component 136 may then determine whether the difference meets a threshold difference. For a first example, the Analytical component 136 may determine a size difference between the second compressed data and the third compressed data. The Analytical component 136 may then determine whether the size difference meets a size threshold. For example, if the size difference is 0.5 megabytes and the size threshold is 0.75 megabytes, the Analytical component 136 may determine that the size difference meets (e.g., is within) the size threshold. For a second example, the Analytical component 136 may determine a ratio (e.g., difference) of the size of the third compressed data to the size of the second compressed data. The Analytical component 136 may then determine whether the ratio meets a threshold. For example, if the second compressed data includes a size of 0.5 megabytes and the third compressed data includes a size of 0.8 megabytes, the analytical component 136 may determine that the ratio of the size of the second compressed data to the size of the third compressed data is 0.625. If the threshold value includes 0.8, then the analytical component 136 may determine that the ratio meets (e.g., is within) the threshold value. For example, the analytical component 136 may determine that the ratio of 0.625 is within (e.g., less than) the threshold value of 0.8. In some examples, the smaller the ratio, the more similar the second portion of the second data 120 is to the second portion of the first data 110.
[0042] In some examples, the compressed data may include a dictionary and / or criteria. For example, the compression component 128 may compress the portion 116(5) of the first data 110 using an algorithm(s) (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.). Based on the compression, the compression component 128 may generate a first dictionary 132 and a first criterion 134 (e.g., a first sequence of symbol and phrase criteria). The compression component 128 may further compress the portion 116(9) of the second data 120 using an algorithm(s). Based on the compression, the compression component 128 may generate a second dictionary 132 and a second criterion 134 (e.g., a second sequence of symbol and phrase criteria). Additionally, the compression component 128 may again compress the portion 116(9) of the second data 120 using the algorithm(s) and the first dictionary 132. For example, the compression component 128 may first populate the third dictionary 132 using the first dictionary 132 as a base. The compression component 128 may then add additional data to the third dictionary, where the additional data represents the difference between the portion 116(5) of the first data 110 and the second portion 116(9) of the second data 120. Additionally, the compression component 128 may generate a third criteria 134 (e.g., a third sequence of symbol and phrase criteria) for the third dictionary 132.
[0043] The remote system 102 may then utilize the analysis component 136 to determine the difference between the second dictionary 132 and the third dictionary 132. The analysis component 136 may then determine whether the difference meets the threshold 130. For a first example, the analysis component 136 may determine the size difference between the second dictionary 132 and the third dictionary 132. The analysis component 136 may then determine whether the size difference meets the size threshold 130. The size threshold 130 may include, but is not limited to, 100 bytes, 250 bytes, 500 bytes, 1 megabyte, and / or any other size. For example, if the size difference between the second dictionary 132 and the third dictionary 132 is 0.5 megabytes and the size threshold is 0.75 megabytes, the analysis component 136 may determine that the size difference meets (e.g., is within) the size threshold 130.
[0044] For a second example, the analysis component 136 may determine a ratio (e.g., difference) between the size of the third dictionary 132 and the size relative to the second dictionary 132. The remote system may then determine whether the ratio meets the threshold 130. The threshold 130 may include, but is not limited to, 0.1, 0.2, 0.5, 0.8, and / or any other threshold. For example, if the second dictionary 132 includes a size of 0.5 megabytes and the third dictionary 132 includes a size of 0.8 megabytes, the remote system 102 may determine that the ratio between the size of the second dictionary 132 and the size of the third dictionary 132 is 0.625. If the threshold includes 0.8, the remote system 102 may determine that the ratio meets (e.g., is within) the threshold. For example, the remote system 102 may determine that a ratio of 0.625 is within (e.g., less than) the threshold of 0.8.
[0045] In some examples, the remote system 102 may utilize the update component 138 to generate a patch file 126 for the second version 106 of the file. For example, based on determining that the difference meets the threshold 130, the update component 138 may store transformation data 140 representing the difference between the portion 115(9) of the second data 120 and the portion 115(5) of the first data 110. In some examples, the transformation data 140 may represent the difference between the third dictionary 132 and the first dictionary 132. Additionally, the update component 138 may store data representing the third criteria 134 generated for the third dictionary 132.
[0046] In some examples, the remote system 102 may then perform a similar process for each of the other unique portions 116(7)-(8) of the second data 120. For example, the remote system 102 may analyze the portion 116(8) of the second data 120 with respect to the portion 116(3) of the first data 110. During the analysis, the update component 138 may determine that the difference between the portion 116(8) of the second data 120 and the portion 116(3) of the first data 110 meets the threshold value 130. Based on the determination, the update component 138 may store transformed data 140 in the patch file 126 that represents the difference between the portion 116(8) of the second data 120 and the portion 116(3) of the first data 110. In addition, the update component 138 may store data representing fourth criteria 134 (e.g., a fourth sequence of symbol and phrase criteria) for the fourth dictionary 132 generated by the compression component 128 for the portion 116(8) of the second data 120.
[0047] In some examples, the remote system 102 may determine that the unique portion of the second data 120 is not similar to one of the portions 116(1)-(6) of the first data 110. For example, the remote system 102 may analyze the portion 116(7) of the second data 120 against the portion 116(2) of the first data 110. During the analysis, the update component 138 may determine that a difference between the portion 116(7) of the second data 120 relative to the portion 116(2) of the first data 110 does not meet the threshold value 130. In some examples, based on the determination, the update component 138 stores in the patch file 126 the portion data 142 that represents the portion 116(7) of the second data 120. In some examples, the update component 138 may store data that associates the portion 116(7) of the second data 120 with the second version 106 of the file.
[0048] The remote system 102 may then transmit the patch file 126 to the electronic devices 112(1)-(3) over the network 108. In some examples, if the patch file 126 does not include the partial data 142, the remote system 102 may separately transmit the portions 116(7) of the second data 120 to the electronic devices 112(1)-(3). The electronic devices 112(1)-(3) may then use the first data 110 for the first version of the file 104, the patch file 126, and / or the dictionaries 132 associated with the portions 116(1)-(6) of the first data 110 to update the first version of the file 104 to the second version of the file 106.
[0049] For example, electronic device 112(1) may use portions 116(1), 116(4), and 116(6) of first data 110 that correspond to portions 116(1), 116(4), and 116(6) of second data 120, where portions 116(1), 116(4), and 116(6) of first data 110 have already been stored by electronic device 112(1). In addition, electronic device 112(1) may use dictionary 132 associated with portion 116(3) of first data 110, conversation data 140 associated with portion 116(8) of second data 120, and / or criteria 134 associated with portion 116(8) of second data 120 to convert portion 116(3) of first data 110 to portion 116(8) of second data 120. Similarly, electronic device 112(1) may use dictionary 132 associated with portion 116(5) of first data 110, conversation data 140 associated with portion 116(9) of second data 120, and / or criteria 134 associated with portion 116(9) of second data 120 to convert portion 116(5) of first data 110 to portion 116(9) of second data 120. Additionally, electronic device 112(1) may replace portion 116(2) of first data 110 with portion 116(7) of second data 120.
[0050] As further illustrated in FIG. 1, the remote system 102 may include processor(s) 144, network interface(s) 146, and memory 148, and the electronic device 112(1) may include processor(s) 150, network interface(s) 152, and memory 154. As used herein, a processor, such as processor(s) 144 and processor(s) 150, may include a processor having multiple processors and / or multiple cores. Furthermore, a processor may include one or more cores of different types. For example, a processor may include an application processor unit, a graphics processing unit, etc. In one implementation, a processor may include a microcontroller and / or a microprocessor. The processor(s) may include a graphics processing unit (GPU), a microprocessor, a digital signal processor, or other processing unit or component known in the art. Alternatively, or in addition, what is functionally described herein may be implemented, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), etc. In addition, each of the processor(s) may possess its own local memory that may also store program components, program data, and / or one or more operating systems.
[0051] Memories such as memory 148 and memory 154 may include volatile and non-volatile memory, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program components, or other data. Such memories include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVDs) or other optical memory, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, RAID storage systems, or any other medium that can be used to store the desired information and that can be accessed by a computing device. Memory may be implemented as a computer-readable storage medium ("CRSM"), which may be any available physical medium that can be accessed by a processor(s) to execute instructions stored in the memory. In one basic implementation, the CRSM may include random access memory ("RAM") and flash memory. In other implementations, the CRSM may include, but is not limited to, read-only memory ("ROM"), electrically erasable programmable read-only memory ("EEPROM"), or any other tangible medium that can be used to store desired information and that can be accessed by the processor(s).
[0052] Further, the functional components may be stored in respective memories, or the same functions may alternatively be implemented in hardware, firmware, application specific integrated circuits, field programmable gate arrays, or systems on chips (SoCs). In addition, although not illustrated, each corresponding memory, such as the memories described herein, may include at least one operating system (OS) component configured to manage hardware resource devices, such as network interface(s), I / O devices of the corresponding device, and provide various services to applications or components executing on the processor. Such OS components may implement a variant of the FreeBSD operating system published by the FreeBSD project, other UNIX or UNIX-like variants, a variant of the Linux operating system published by Linus Torvalds, the FireOS operating system of Amazon.com Inc. of Seattle, Washington, USA, the Windows operating system of Microsoft Corporation of Redmond, Washington, USA, LynxOS published by Lynx Software Technologies, Inc. of San Jose, California, an embedded operating system (Enea OSE) published by ENEA AB of Sweden, and the like.
[0053] Network interface(s), such as network interface(s) 146 and network interface(s) 152, may enable communication between the components and / or devices shown in environment 100 and / or between one or more other remote systems, as well as other network devices. Such network interface(s) may include one or more network interface controllers (NICs) or other types of transceiver devices for transmitting and receiving communications over network 108. For example, each of the network interface(s) may include a personal area network (PAN) component to enable communication over one or more short-range wireless communication channels. For example, the PAN component may be configured to communicate with the following standards: IEEE 802.15.4 (ZigBee), IEEE 802.15.1 (Bluetooth), IEEE 802.15.2 (Bluetooth), IEEE 802.15.3 (Bluetooth), IEEE 802.15.4 (Bluetooth), IEEE 802.15.5 (Bluetooth), IEEE 802.15.6 (Bluetooth), IEEE 802.15.7 (Bluetooth), IEEE 802.15.8 (Bluetooth), IEEE 802.15.9 (Bluetooth), IEEE 802.15.10 (Bluetooth), IEEE 802.15.11 (Bluetooth), IEEE 802.15.12 (Bluetooth), IEEE 802.15.13 (Bluetooth), IEEE 802.15.14 (Bluetooth), IEEE 802.15.15 (Bluetooth), IEEE 802.15.15 (Bluetooth), IEEE 802.15.15 (Bluetooth), IEEE 802.15.16 (Bluetooth), IEEE 802.15.17 (Bluetooth), IEEE 802.15.18 (Bluetooth), IEEE 802.15.19 (Bluetooth), IEEE 802.15.20 (Bluetooth), IEEE 802.15.21 (Bluetooth), IEEE 8 TM ), IEEE 802.11 (WiFi TM ), or any other PAN communication protocol. Additionally, each of the network interface(s) may include a wide area network (WAN) component to enable communication over a wide area network.
[0054] 2 is an example of identifying portions of first data 202 representing a first version 204 of a file that may be converted into portions of second data 206 representing a second version 208 of the file. For example, remote system 102 may analyze portions 210(1)-(6) of first data 202 with respect to portions 210(3) and 212(1)-(5) of second data 206 to identify portion(s) of first data 202 that are similar to portion(s) of second data 206. For example, in process 214, remote system 102 may first identify that portion 210(3) of first data 202 corresponds to portion 210(3) of second data 206 using a process described herein (e.g., CRC, SHA-1, etc.). The remote system 102 may then use the portion 210(3) of the first data 202 and the portion 210(3) of the second data 206 as an “anchor” portion to identify a portion(s) of the first data 202 that is similar to the portion(s) of the second data 206.
[0055] Next, in process 216, remote system 102 may analyze the "adjacent" portions relative to the anchor portion to determine whether the adjacent portions are similar to one another. For a first example, remote system 102 may analyze portion 210(2) of first data 202 relative to portion 212(3) of second data 206 using one or more of the processes described herein (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.) to determine whether portion 210(2) of first data 202 is similar to portion 212(3) of second data 206. Additionally, remote system 102 may analyze portion 210(4) of first data 202 against portion 212(4) of second data 206 using one or more of the processes described herein (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.) to determine whether portion 210(4) of first data 202 is similar to portion 212(4) of second data 206.
[0056] Then, in process 218, if the remote system 102 determines that the two portions are similar to one another, the remote system may continue to analyze adjacent portions. For a first example, the remote system 102 may determine that the portion 210(4) of the first data 202 is similar to the portion 212(4) of the second data 206 (e.g., a difference between the portion 210(4) of the first data 202 and the portion 212(4) of the second data 206 meets a threshold). Based on the determination, the remote system 102 may analyze the portion 210(5) of the first data 202 against the portion 212(5) of the second data 206 using one or more of the processes described herein (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.) to determine whether the portion 210(5) of the first data 202 is similar to the portion 212(5) of the second data 206.
[0057] For a second example, the remote system 102 may determine that the portion 210(2) of the first data 202 is not similar to the portion 212(3) of the second data 206 (e.g., a difference between the portion 210(2) of the first data 202 and the portion 212(3) of the second data 206 does not meet a threshold). In some examples, as illustrated in the example of FIG. 2, based on the determination, the remote system 102 may determine not to analyze the portion 210(1) of the first data 202 with respect to the portion 212(2) of the second data 206. However, in other examples, remote system 102 may analyze portion 210(1) of first data 202 against portion 212(2) of second data 206 using one or more of the processes described herein (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.) to determine whether portion 210(1) of first data 202 is similar to portion 212(2) of second data 206.
[0058] 3 is an example of a remote system 102 generating patch files for various versions of a file. For example, the remote system 102 may store a first version 302 of a file, a second version 304 of a file, a third version 306 of a file, and a fourth version 308 of a file. Using the process described herein, the remote system 102 may generate a first patch file 310 for updating the first version 302 of the file to the second version 304 of the file, a second patch file 312 for updating the first version 302 of the file to the third version 306 of the file, a third patch file 314 for updating the first version 302 of the file to the fourth version 308 of the file, a fourth patch file 316 for updating the second version 304 of the file to the third version 306 of the file, a fifth patch file 318 for updating the second version 304 of the file to the fourth version 308 of the file, and / or a sixth patch file 320 for updating the third version 306 of the file to the fourth version 308 of the file.
[0059] The remote system 102 may then send patch files 310-320 to the electronic devices based on the current versions of the file stored on the electronic devices. In a first example, the first group of electronic devices 322 may store the third version 306 of the file. Thus, the remote system 102 may send the sixth patch file 320 to the first group of electronic devices 322 to update the third version 306 of the file to the fourth version 308 of the file. In addition, the second group of electronic devices 324 may store the second version 304 of the file. Thus, the remote system 102 may send the fifth patch file 318 to the second group of electronic devices 324 to update the second version 304 of the file to the fourth version 308 of the file. Furthermore, the third group of electronic devices 326 may store the first version 302 of the file. Thus, the remote system 102 may send the first patch file 310 to the third group of electronic devices 326 to update the first version 302 of the file to the fourth version 308 of the file.
[0060] In some examples, instead of generating each of the patch files 310-320, the remote system 102 may generate patch files for the most common updates of the file. For example, in the example of FIG. 3, the first electronic device group 322 includes four electronic devices that update the third version 306 of the file to the fourth version 308 of the file, the second electronic device group 324 includes a fourth electronic device that updates the second version 304 of the file to the fourth version 308 of the file, and the third electronic device group 326 includes two electronic devices that update the first version 302 of the file to the fourth version 308 of the file. Thus, in some examples, the remote system 102 may generate only the fifth patch file 318 for updating the second version 304 of the file to the fourth version 308 of the file and the sixth patch file 320 for updating the third version 306 of the file to the fourth version 308 of the file. However, because only two electronic devices are updating the first version 302 of the file to the fourth version 308 of the file, the remote system 102 may not need to generate the first patch file 310 .
[0061] The processes described herein are illustrated as a collection of blocks in a logic flow graph, which represent a sequence of operations that may be implemented in hardware, software, or a combination thereof. In the context of software, the blocks represent computer-executable instructions that, when executed by one or more processors, perform the recited operations. Generally, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform particular functions or implement particular abstract data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described blocks can be combined in any order and / or in parallel to implement a process.
[0062] 4 is a flow diagram of an example process 400 for generating data for updating from a version of a file to a second version of the file. At 402, the process 400 may include storing first data representing the first version of the file. For example, the remote system 102 may store the first data representing the first version of the file. In some examples, the file may be associated with a game. In some examples, the remote system 102 may receive the first data from one or more computing devices associated with a developer of the file.
[0063] At 404, the process 400 may include identifying a plurality of first portions of the first data representing the first version of the file. For example, the remote system 102 may identify a plurality of first portions of the first data representing the first version of the file. The plurality of first portions of the first data may include contiguous sections of the first data. For example, the plurality of first portions of the first data may include, but are not limited to, a 500 byte contiguous section of the first data, a 1 megabyte contiguous section of the first data, and / or a 5 megabyte contiguous section of the first data, etc.
[0064] At 406, process 400 may include storing second data representing the second version of the file. For example, the remote system 102 may store the second data representing the second version of the file. In some examples, data may be added to the first data, removed from the first data, modified within the first data, etc. to generate the second data. In some examples, the remote system 102 may receive the second data from one or more computing devices associated with the developer of the file.
[0065] At 408, the process 400 may include identifying a plurality of second portions of the second data representing the second version of the file. For example, the remote system 102 may identify a plurality of second portions of the second data representing the second version of the file. The plurality of second portions of the second data may include contiguous sections of the second data. For example, the plurality of second portions of the second data may include, but are not limited to, a 500 byte contiguous section of the second data, a 1 megabyte contiguous section of the second data, and / or a 5 megabyte contiguous section of the second data, etc. In some examples, the plurality of second portions of the second data may include a similar size to the first portion of the first data.
[0066] At 410, the process 400 may include determining that a first portion of the plurality of first portions corresponds to a first portion of the plurality of second portions. For example, the remote system 102 may determine that a first portion of the plurality of first portions corresponds to a first portion of the plurality of second portions. In some examples, to make the determination, the remote system 102 may use a CRC to determine a first check value for the first portion of the plurality of first portions and a second check value for the first portion of the plurality of second portions. The remote system 102 may then determine that the first check value is the same as the second check value. In some examples, to make the determination, the remote system 102 may use SHA-1 to determine a first hash value for the first portion of the plurality of first portions and a second hash value for the first portion of the plurality of second portions. The remote system 102 may then determine that the first hash value is the same as the second hash value.
[0067] At 412, the process 400 may include identifying a second portion of the plurality of first portions using the first portion of the plurality of first portions. For example, the remote system 102 may identify the second portion of the plurality of first portions using the first portion of the plurality of first portions. In some examples, the remote system 102 may identify the second portion of the plurality of first portions as a portion of the first data that follows the first portion of the plurality of first portions. In some examples, the remote system 102 may identify the second portion of the plurality of first portions as a portion of the first data that precedes the first portion of the plurality of first portions.
[0068] At 414, the process 400 may include identifying a second portion of the plurality of second portions using the first portion of the plurality of second portions. For example, the remote system 102 may identify the second portion of the plurality of second portions using the first portion of the plurality of second portions. In some examples, the remote system 102 may identify the second portion of the plurality of second portions as a portion of the second data that follows the first portion of the plurality of second portions. In some examples, the remote system 102 may identify the second portion of the plurality of second portions as a portion of the first data that precedes the first portion of the plurality of second portions.
[0069] At 416, the process 400 may include compressing a second portion of the plurality of first portions by generating at least a first dictionary. For example, the remote system 102 may compress the second portion of the plurality of first portions by generating at least a first dictionary. In some examples, the remote system 102 compresses the second portion of the plurality of first portions using one or more algorithms associated with one or more compression techniques (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.). In some examples, the remote system 102 compresses the second portion of the plurality of first portions using one or more other compression techniques.
[0070] At 418, the process 400 may include compressing the second portion of the plurality of second portions by generating at least a second dictionary. For example, the remote system 102 may compress the second portion of the plurality of second portions by generating at least a second dictionary. In some examples, the remote system 102 compresses the second portion of the plurality of second portions using one or more algorithms associated with one or more compression techniques (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.). In some examples, the remote system 102 compresses the second portion of the plurality of second portions using one or more other compression techniques.
[0071] At 420, the process 400 may include compressing the second portion of the plurality of second portions by using the first dictionary to generate at least a third dictionary and criteria. For example, the remote system 102 may compress the second portion of the plurality of first portions by using the first dictionary to generate at least a third dictionary and criteria. For example, the remote system 102 may use the first dictionary as a base. The remote system 102 may then add additional data to the first dictionary based on the first data included in the second portion of the plurality of second portions to generate the third dictionary. In some examples, the remote system 102 compresses the second portion of the plurality of second portions using one or more algorithms associated with one or more compression techniques (e.g., LZMA, LZW, BTLZ, LZ77, LZ78, etc.). In some examples, the remote system 102 compresses the second portion of the plurality of second portions using one or more other compression techniques.
[0072] At 422, the process 400 may include determining a difference between the second portion of the plurality of first portions and the second portion of the plurality of second portions using the second dictionary and the third dictionary. For example, the remote system 102 may determine a difference between the second portion of the plurality of first portions and the second portion of the plurality of second portions using the second dictionary and the third dictionary. In some examples, the remote system 102 may determine the difference as a size difference between the second dictionary and the third dictionary. In some examples, the remote system 102 may determine the difference as a ratio between the second dictionary and the third dictionary.
[0073] At 424, the process 400 may include determining whether the difference meets a threshold. For example, the remote system 102 may determine whether the difference meets a threshold difference. In some examples, if the difference includes a size difference, the remote system 102 may determine that the size difference meets the threshold when the size difference is within a size threshold. In some examples, if the difference includes a ratio, the remote system 102 may determine that the size difference meets the threshold when the ratio is within a ratio threshold.
[0074] If, at 424, it is determined that the difference does not meet the threshold, then at 426, the process 400 may include determining that the second portion of the plurality of second portions is dissimilar to the second portion of the plurality of first portions. For example, if the remote system 102 determines that the difference does not meet the threshold, the remote system 102 may determine that the second portion of the plurality of second portions is dissimilar to the second portion of the plurality of first portions. Additionally, in some examples, if the remote system 102 receives a request from the electronic device to update the first version of the file to the second version of the file, the remote system 102 may send the second portion of the plurality of second portions to the electronic device.
[0075] If the difference is determined to meet the threshold at 424, then the process 400 may include determining that the second portion of the plurality of second portions is similar to the second portion of the plurality of first portions at 428. For example, if the remote system 102 determines that the difference meets the threshold, the remote system 102 may determine that the second portion of the plurality of second portions is similar to the second portion of the plurality of first portions.
[0076] At 430, process 400 may include storing at least a portion of the third dictionary and / or the criteria as a patch file of the second version of the file. For example, the remote system 102 may store at least a portion of the third dictionary and the criteria as a patch file of the second version of the file. Additionally, in some examples, when the remote system 102 receives a request from the electronic device to update the first version of the file to the second version of the file, the remote system 102 may send the patch file to the electronic device rather than the second portion of the multiple second portions.
[0077] In some examples, the remote system 102 may perform at least 410-430 for the additional portions of the first data and the second data. Additionally, based on determining that the additional portion(s) of the second data are similar to the additional portion(s) of the first data, the remote system 102 may continue to add data to the patch file of the second version of the file.
[0078] 5 is a flowchart of an example process 500 for identifying a portion of first data that is similar to a portion of second data. At 502, the process 500 may include storing first data representing a first version of a file. For example, the remote system 102 may store the first data representing the first version of the file. In some examples, the file may be associated with a game. In some examples, the remote system 102 may receive the first data from one or more computing devices associated with a developer of the file.
[0079] At 504, process 500 may include storing second data representing the second version of the file. For example, the remote system 102 may store the second data representing the second version of the file. In some examples, data may be added to the first data, removed from the first data, modified within the first data, etc. to generate the second data. In some examples, the remote system 102 may receive the second data from one or more computing devices associated with the developer of the file.
[0080] At 506, the process 500 may include determining that the first portion of the first data corresponds to the first portion of the second data. For example, the remote system 102 may determine that the first portion of the first data corresponds to the first portion of the second data. In some examples, to make the determination, the remote system 102 may use a CRC to determine a first check value for the first portion of the first data and a second check value for the first portion of the second data. The remote system 102 may then determine that the first check value is the same as the second check value. In some examples, to make the determination, the remote system 102 may use SHA-1 to determine a first hash value for the first portion of the first data and a second hash value for the first portion of the second data. The remote system 102 may then determine that the first hash value is the same as the second hash value.
[0081] At 508, the process 500 may include using the first portion of the first data to identify a second portion of the first data. For example, the remote system 102 may use the first portion of the first data to identify the second portion of the first data. In some examples, the remote system 102 may identify the second portion of the first data as a portion of the first data that follows the first portion of the first data. In some examples, the remote system 102 may identify the second portion of the first data as a portion of the first data that precedes the first portion of the first data.
[0082] At 510, the process 500 may include identifying a second portion of the second data using the first portion of the second data. For example, the remote system 102 may identify the second portion of the second data using the first portion of the second data. In some examples, the remote system 102 may identify the second portion of the second data as a portion of the second data that follows the first portion of the second data. In some examples, the remote system 102 may identify the second portion of the second data as a portion of the first data that precedes the first portion of the second data.
[0083] At 512, the process 500 may include generating third data representing a difference between the second portion of the second data and the second portion of the first data. For example, the remote system 102 may generate the third data representing a difference between the second portion of the second data and the second portion of the first data. In some examples, the difference may include a portion of a dictionary generated for the second portion of the second data, the dictionary generated using a dictionary associated with the second portion of the first data. In some examples, the difference may include a criterion associated with the dictionary generated for the second portion of the second data.
[0084] At 514, process 500 may include storing third data associated with the file. For example, the remote system 102 may store the third data associated with the file. The third data may then be used to convert the second portion of the first data into the second portion of the second data.
[0085] 6 is a flow diagram of a second example process 600 for identifying a portion of first data that is similar to a portion of second data. At 602, the process 600 may include identifying a first portion of the first data. For example, the remote system 102 may identify the first portion of the first data. In some examples, the first data may represent a first version of a file. In some examples, the remote system 102 may receive the first data from one or more computing devices associated with a developer of the file.
[0086] At 604, process 600 may include identifying a second portion of the second data. For example, the remote system 102 may identify the second portion of the second data. In some examples, the second data may represent a second version of the file. For example, data may be added to, removed from, modified within the first data, etc. to generate the second data. In some examples, the remote system 102 may receive the second data from one or more computing devices associated with the developer of the file.
[0087] At 606, the process 600 may include determining that the first portion of the first data corresponds to the first portion of the second data. For example, the remote system 102 may determine that the first portion of the first data corresponds to the first portion of the second data. In some examples, to make the determination, the remote system 102 may use a CRC to determine a first check value for the first portion of the first data and a second check value for the first portion of the second data. The remote system 102 may then determine that the first check value is the same as the second check value. In some examples, to make the determination, the remote system 102 may use SHA-1 to determine a first hash value for the first portion of the first data and a second hash value for the first portion of the second data. The remote system 102 may then determine that the first hash value is the same as the second hash value.
[0088] At 608, the process 600 may include using the first portion of the first data to identify a second portion of the first data. For example, the remote system 102 may use the first portion of the first data to identify the second portion of the first data. In some examples, the remote system 102 may identify the second portion of the first data as a portion of the first data that follows the first portion of the first data. In some examples, the remote system 102 may identify the second portion of the first data as a portion of the first data that precedes the first portion of the first data.
[0089] At 610, the process 600 may include identifying a second portion of the second data using the first portion of the second data. For example, the remote system 102 may identify the second portion of the second data using the first portion of the second data. In some examples, the remote system 102 may identify the second portion of the second data as a portion of the second data that follows the first portion of the second data. In some examples, the remote system 102 may identify the second portion of the second data as a portion of the first data that precedes the first portion of the second data.
[0090] At 612, the process 600 may include analyzing the second portion of the second data against the second portion of the first data. For example, the remote system 102 may analyze the second portion of the second data against the second portion of the first data. In some examples, to perform the analysis, the remote system 102 may generate third data representing a difference between the second portion of the second data and the second portion of the first data. In some examples, the difference may include a portion of a dictionary generated for the second portion of the second data, the dictionary generated using a dictionary associated with the second portion of the first data. In some examples, the difference may include a criterion associated with the dictionary generated for the second portion of the second data.
[0091] Although the present subject matter has been described in language specific to structural features, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features described. Rather, the specific features are disclosed as exemplary forms of implementing the claims.
Claims
1. One or more computing devices, one or more processors; One or more computer-readable media that, when executed by the one or more processors, cause the one or more processors to: storing first data representing a first version of the file; identifying a first portion of the first data representing the first version of the file; storing second data representing a second version of the file; identifying a first portion of the second data representing the second version of the file; determining that the first portion of the first data corresponds to the first portion of the second data; identifying a second portion of the first data based at least in part on the first portion of the first data corresponding to the first portion of the second data, the second portion of the first data being subsequent to the first portion of the first data; identifying a second portion of the second data based at least in part on a first portion of the first data that corresponds to the first portion of the second data, the second portion of the second data being subsequent to the first portion of the second data; compressing the second portion of the first data by at least generating a first dictionary associated with the second portion of the first data; compressing the second portion of the second data by at least generating a second dictionary associated with the second portion of the second data; compressing the second portion of the second data by using the first dictionary to generate at least a third dictionary and a criterion associated with the second portion of the second data; determining a difference between the second portion of the first data and the second portion of the second data using the second dictionary and the third dictionary; determining that the difference satisfies a threshold difference; and storing at least one of the third dictionary or the criteria as a patch file of the second version of the file based at least in part on the difference satisfying the threshold difference.
2. the criterion is a first criterion, the difference is a first difference, and the action is identifying a third portion of the first data, the third portion of the first data preceding the first portion of the first data; identifying a third portion of the second data, the third portion of the second data preceding the first portion of the second data; compressing the third portion of the first data by at least generating a fourth dictionary associated with the third portion of the first data; compressing the third portion of the second data by at least generating a fifth dictionary associated with the third portion of the second data; compressing the third portion of the second data by using the fourth dictionary to generate at least a sixth dictionary and a second criterion associated with the third portion of the second data; determining a second difference between the third portion of the first data and the third portion of the second data using the fifth dictionary and the sixth dictionary; and determining that the second difference satisfies the threshold difference; 2. The one or more computing devices of claim 1, further comprising: storing at least one of the portion of the sixth dictionary or the second criteria as part of the patch file based at least in part on the second difference satisfying the threshold difference.
3. The operation, generating a first value using the first portion of the first data; generating a second value using the first portion of the second data; 2. The one or more computing devices of claim 1 , wherein determining that the first portion of the first data corresponds to the first portion of the second data comprises determining that the first value matches the second value.
4. The operation, receiving third data from an electronic device representing a request to update the first version of the file to the second version of the file; The one or more computing devices of claim 1 , further comprising: transmitting the patch file to the electronic device.
5. 1. A method comprising: storing first data representing a first version of the file; storing second data representing a second version of the file; determining that a first portion of the first data corresponds to a first portion of the second data; based at least in part on the first portion of the first data corresponding to the first portion of the second data; using the first portion of the first data to identify a second portion of the first data; identifying a second portion of the second data using the first portion of the second data; and analyzing the second portion of the second data against the second portion of the first data.
6. generating third data representative of a difference between the second portion of the second data and the second portion of the first data based at least in part on the analyzing; The method of claim 5 , further comprising: storing the third data in association with the file.
7. determining that the difference satisfies a threshold difference; 7. The method of claim 6, wherein the storing the third data comprises storing the third data as a patch file for the file based at least in part on the difference satisfying the threshold.
8. generating fourth data representing a first dictionary associated with the second portion of the first data; the third data represents at least one of a second dictionary or a criterion associated with the second portion of the second data; 7. The method of claim 6, wherein the generating the third data comprises: using the fourth data representing the first dictionary to generate the third data representing at least one of the second dictionary or the criteria associated with the second portion of the second data.
9. generating fifth data representing a third dictionary associated with the second portion of the second data; determining additional differences between the third dictionary and the second dictionary; determining that the additional difference satisfies a threshold difference; The method of claim 8 , wherein the storing of the third data is based at least in part on the additional difference satisfying the threshold difference.
10. determining that the difference satisfies a threshold difference; based at least in part on the difference satisfying the threshold difference; using the second portion of the first data to identify a third portion of the first data; using the second portion of the second data to identify a third portion of the second data; 7. The method of claim 6, further comprising: generating fourth data representing an additional difference between the third portion of the second data and the third portion of the first data.
11. determining that the additional difference does not meet a threshold difference; based at least in part on determining that the additional difference does not meet the threshold difference; refraining from using the third portion of the first data to identify a fourth portion of the first data; and refraining from using the third portion of the second data to identify a fourth portion of the second data.
12. The method of claim 5 , further comprising determining, based at least in part on the analysis, that the second portion of the second data is similar to the second portion of the first data.
13. Identifying the second portion of the first data using the first portion of the first data includes identifying the second portion of the first data as preceding the first portion of the first data; 6. The method of claim 5, wherein identifying the second portion of the second data using the first portion of the second data comprises identifying the second portion of the second data as preceding the first portion of the second data.
14. Identifying the second portion of the first data using the first portion of the first data includes identifying the second portion of the first data as following the first portion of the first data; 6. The method of claim 5, wherein identifying the second portion of the second data using the first portion of the second data comprises identifying the second portion of the second data as following the first portion of the second data.
15. The analyzing the second portion of the second data against the second portion of the first data includes: compressing the second portion of the first data to generate first compressed data; compressing the second portion of the second data to generate second compressed data; generating third compressed data by compressing the second portion of the second data using the first compressed data; determining a difference between the third compressed data and the second compressed data; determining that the difference meets a threshold; and 6. The method of claim 5, further comprising storing the third compressed data in association with the file.
16. One or more computing devices, one or more processors; One or more computer-readable media that, when executed by the one or more processors, cause the one or more processors to: identifying a first portion of first data, the first data representing a first version of a file; identifying a second portion of second data, the second data representing a second version of the file; determining that the first portion of the first data corresponds to the first portion of the second data; based at least in part on the first portion of the first data corresponding to the first portion of the second data; using the first portion of the first data to identify a second portion of the first data; identifying a second portion of the second data using the first portion of the second data; and and one or more computer-readable media storing instructions that cause the one or more computing devices to perform operations including: analyzing the second portion of the second data against the second portion of the first data.
17. The operation, generating third data representative of a difference between the second portion of the second data and the second portion of the first data based at least in part on the analyzing; The one or more computing devices of claim 16 , further comprising: storing the third data in association with the file.
18. The operation, determining that the difference satisfies a threshold difference; 20. The one or more computing devices of claim 17, wherein the storing the third data comprises storing the third data as a patch file for the file based at least in part on the difference satisfying the threshold.
19. The operation, generating fourth data representing a first dictionary associated with the second portion of the first data; the third data represents at least one of a second dictionary or a criterion associated with the second portion of the second data; 20. The one or more computing devices of claim 17, wherein the generating the third data comprises using the first dictionary to generate the third data representing at least one of the second dictionary or the criteria associated with the second portion of the second data.
20. identifying the second portion of the first data using the first portion of the first data includes identifying the second portion of the first data that precedes or follows the first portion of the first data; 17. The method of claim 16, wherein identifying the second portion of the second data using the first portion of the second data comprises identifying the second portion of the second data that precedes the first portion of the second data or that follows the first portion of the second data.
Citation Information
Patent Citations
Nonvolatile memory rewriting device
JP2005128894A
Difference application build-in equipment, difference application build-in equipment system, and storage data change method
JP2006004125A
Control device, program update system, and program update method
JP2018180948A
Document differences analysis and presentation
US20180089155A1
Vehicle-mounted control device, program writing device, program generating device and program
WO2016121442A1
