Giter VIP home page Giter VIP logo

cloudflare-zlib's Introduction

Fork of https://github.com/yasushi-saito/cloudflare-zlib

Changes from upstream

  • Remove inlined zlib
    • You should install zlib yourself
    • From brief testing it should be compatible with normal zlib as well.
  • Added Flush method
  • Added Version method
  • Added Reset method
    • To accommodate this change, the Close method no longer call deflateEnd. Instead, it is done using finalizer.

Using this with cloudflare-zlib

This module does not ship with Cloudflare's implementation of zlib. Instead, it will link with any zlib you have installed.

To use it with cloudflare-zlib, you should install it

WARNING This instruction is tested on Docker - it MAY or may not break your system if you replace the original zlib.

git clone https://github.com/cloudflare/zlib
cd zlib
CFLAGS="-march=native -mtune=native -O3" ./configure
make
cp libz.so* /usr/lib/

Then build your app accordingly:

CGO_CFLAGS="-I/path/to/zlib" CGO_LDFLAGS="-I/path/to/zlib -lz" go build ./...

cloudflare-zlib's People

Contributors

whs avatar yasushi-saito avatar

Stargazers

 avatar

Watchers

 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.