Coder Social home page Coder Social logo

go-dir-bsdiff's Introduction

文件夹 bsdiff

针对文件夹的 bsdiff

bsdiff 需要大量内存,为了避免大文件需要使用大量内存,使用了分块,分成 100 MB 的块进行对比。

同时由于还原使用的机器可能比计算差异使用的机器的 CPU 和内存大小都差很多,最好还是尽量减小文件,分成 100 MB 的小块,避免占用大量 CPU 和内存。

使用

diff.exe 旧文件夹路径 新文件夹路径 差异文件夹路径 [文件分块大小]
patch.exe 旧文件夹路径 新文件夹路径 差异文件夹路径

Build

go build ./cmd/diff
go build ./cmd/patch

关于 bsdiff

bsdiff

本项目使用 go-bsdiff,是 C 语言版本的速度 50% ~ 80% 左右

Pure Go bsdiff and bspatch libraries and CLI tools.

补丁文件说明

{
  "manifest_version": "0.1",
  "bulk_size": "104857600",
  "old_md5": {
  },
  "new_md5": {
  },
  "patches":  {
  }
}

go-dir-bsdiff's People

Contributors

ganlvtech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.