# US 2019/0379394 A1 · System and method for global data compression

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0379394 A1
- Document ID: US20190379394A1
- Status: Published application
- Kind: A1
- Application number: 16/002,880
- Filed: 2018-06-07
- Published: 2019-12-12
- Earliest claimed: 2018-06-07
- Assignees: Vast Data Ltd.
- Applicants: Vast Data Ltd.
- Inventors: Renen HALLAK; Asaf LEVY; Shachar FIENBLIT; Niko FARHI; Noa COHEN
- Web page: https://patentgrep.com/patent/US20190379394A1

## CPC

- H03M 7/3091: {Data deduplication}
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/1744: {using compression, e.g. sparse files}
- H03M 7/3095: {using variable length segments}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for global data compression. The method includes splitting a dataset into a plurality of blocks; for each block of the plurality of blocks: computing at least one similarity hash for the block; determining, based on the at least one similarity hash, whether a similar block is found for the block, wherein a similar block for a block has a similarity hash that is similar to one of the computed at least one similarity hash for the block; compressing the block by replacing data of the block with a reference to the similar block and a delta when a similar block is found, wherein the delta is a difference in data between the block and the similar block; and compressing the block independently when a similar block is not found.

## Claims

### Claim 1

A method for global data compression, comprising:
splitting a dataset into a plurality of blocks;
for each block of the plurality of blocks:
computing at least one similarity hash for the block;
determining, based on the at least one similarity hash, whether a similar block is found for the block, wherein a similar block for a block has a similarity hash that is similar to one of the computed at least one similarity hash for the block;
compressing the block by replacing data of the block with a reference to the similar block and a delta when a similar block is found, wherein the delta is a difference in data between the block and the similar block; and
compressing the block independently when a similar block is not found.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
storing each compressed block, wherein each independently compressed block is stored with metadata, wherein the metadata includes a compression algorithm used to compress the data.

### Claim 3 (depends on 2)

The method of claim 2, wherein the metadata further includes a reference count, further comprising, for each stored block:
determining, based on the reference count for the stored block, whether to delete at least one reference to the stored block, wherein it is determined to delete the at least one reference when the stored block is not being used; and
deleting the at least one reference to one of the stored blocks when it is determined to delete the at least one reference.

### Claim 4 (depends on 1)

The method of claim 1, wherein the dataset is split using variable-sized chunking.

### Claim 5 (depends on 1)

The method of claim 1, wherein each similar block is a reference block selected from a respective set of blocks that are similar to each other.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
storing, in an index, the similarity hash computed for each of the plurality of blocks, wherein whether a similar block is found is determined based on the indexed similarity hashes.

### Claim 7 (depends on 5)

The method of claim 5, wherein each reference block was received before each other block of the respective set of blocks that are similar to each other.

### Claim 8 (depends on 5)

The method of claim 5, wherein each reference block has a largest size among blocks of the respective set of blocks that are similar to each other.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
normalizing the dataset, wherein the normalized dataset is split into the plurality of blocks.

### Claim 10 (depends on 9)

The method of claim 9, wherein the dataset includes compressed data, wherein normalizing the dataset further comprises:
determining a compression technique used to compress the data of the dataset;
determining, based on the compression technique, a decompression technique; and
decompressing the compressed data of the dataset using the decompression technique.

### Claim 11

A non-transitory computer readable medium having stored thereon instructions for causing a processing circuitry to execute a process, the process comprising:
splitting a dataset into a plurality of blocks;
for each block of the plurality of blocks:
computing at least one similarity hash for the block;
determining, based on the at least one similarity hash, whether a similar block is found for the block, wherein a similar block for a block has a similarity hash that is similar to one of the computed at least one similarity hash for the block;
compressing the block by replacing data of the block with a reference to the similar block and a delta when a similar block is found, wherein the delta is a difference in data between the block and the similar block; and
compressing the block independently when a similar block is not found.

### Claim 12

A system for global data compression, comprising:
a processing circuitry; and
a memory, the memory containing instructions that, when executed by the processing circuitry, configure the system to:
split a dataset into a plurality of blocks;
for each block of the plurality of blocks:
compute at least one similarity hash for the block;
determine, based on the at least one similarity hash, whether a similar block is found for the block, wherein a similar block for a block has a similarity hash that is similar to one of the computed at least one similarity hash for the block;
compress the block by replacing data of the block with a reference to the similar block and a delta when a similar block is found, wherein the delta is a difference in data between the block and the similar block; and
compress the block independently when a similar block is not found.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
storing each compressed block, wherein each independently compressed block is stored with metadata, wherein the metadata includes a compression algorithm used to compress the data.

### Claim 14 (depends on 13)

The method of claim 13, wherein the metadata further includes a reference count, further comprising, for each stored block:
determining, based on the reference count for the stored block, whether to delete at least one reference to the stored block, wherein it is determined to delete the at least one reference when the stored block is not being used; and
deleting the at least one reference to one of the stored blocks when it is determined to delete the at least one reference.

### Claim 15 (depends on 12)

The method of claim 12, wherein the dataset is split using variable-sized chunking.

### Claim 16 (depends on 12)

The method of claim 12, wherein each similar block is a reference block selected from a respective set of blocks that are similar to each other.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
storing, in an index, the similarity hash computed for each of the plurality of blocks, wherein whether a similar block is found is determined based on the indexed similarity hashes.

### Claim 18 (depends on 16)

The method of claim 16, wherein each reference block was received before each other block of the respective set of blocks that are similar to each other.

### Claim 19 (depends on 16)

The method of claim 16, wherein each reference block has a largest size among blocks of the respective set of blocks that are similar to each other.

### Claim 20 (depends on 12)

The method of claim 12, further comprising:
normalizing the dataset, wherein the normalized dataset is split into the plurality of blocks.

### Claim 21 (depends on 20)

The method of claim 20, wherein the dataset includes compressed data, wherein normalizing the dataset further comprises:
determining a compression technique used to compress the data of the dataset;
determining, based on the compression technique, a decompression technique; and
decompressing the compressed data of the dataset using the decompression technique.
