Skip to content

golangee/bundle

Repository files navigation

bundle GoDoc

is a workaround until 35950 is resolved. bundle embedds files, using a few wanted optimizations, and there is no other which supports this out of the box:

  • give direct access to (cached) uncompressed, brotli and gzip streams
  • optionally cache variants in memory (e.g. for web servers)
  • uses one of the most efficient codecs (brotli), which compresses 14-21% better than gzip at comparable decompression speed
  • uses base85 instead base64 to reduce embedding and parsing overhead from 33% to 25%. It is unclear if using base-122 would be a good choice. The resulting go-file has only around 21% overhead, if compressing again with bzip.
  • optimized http handler which uses etags and no-cache headers and optimized in-memory caches of compression variants
  • customizable resources at runtime
  • only regenerates source code, if files have changed. Perfect for go generate.

alternatives

there are so many...

About

embedds files in various tastes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages