Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@


## Introduction
This is an implementation Content Defined Chunking based on [Rabin Footprint ](http://www.cs.cmu.edu/~hakim/software/).It is extracted from the source code of [seafile](https://github.com/haiwen/seafile) project.
This is an implementation of Content Defined Chunking based on [Rabin Footprint](http://www.cs.cmu.edu/~hakim/software/). It is extracted from the source code of [seafile](https://github.com/haiwen/seafile) project.

You can build this project by running `make`.

Expand All @@ -8,11 +10,11 @@ You can build this project by running `make`.

![cdc](http://baixiangcpp.oss-cn-shanghai.aliyuncs.com/github/cdc.gif)

## Set min block size and max block size
## Set min block size and max block size

```
#define CDC_MIN_BLOCK_SIZE (6 * (1 << 20)) /* 6MB */
#define CDC_MAX_BLOCK_SIZE (10 * (1 << 20)) /* 10MB */
```

If you need the block to be larger or smaller,just change these macros in `cdc.c` to the value you need.
If you need the block to be larger or smaller, just change these macros in `cdc.c` to the value you need.