hauleth
Guidance Counsellor
PhoenixBakery is library for Phoenix 1.6 (and later) that provides modules implementing Phoenix.Digester.Compressor. There are currently 3 modules:
PhoenixBakery.Gzipthat replaces defaultPhoenix.Digester.Gzipwith stronger compression at cost of run time and memory usage. But as it is one-time action (for each release) it is IMHO better to use that build time for less transfer used laterPhoenixBakery.Brotlithat provides support for Brotli algorithm designed by Google and currently supported in all modern browsers. It provides better compression thatgzipand moderate decompression speed.PhoenixBakery.Zstdthat provides support for Zstandard algorithm designed by Facebook. While it is not supported by any browser (AFAIK), the support may rollout in near future. It provides slightly worse compression ratio than Brotli, but provides better decompression times.
Trending in Announcing
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries.
offset-based pagination with...
New
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi all!
I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas.
You...
New
Hello
Published a new library - ProcessHub!
ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
It’s not that it’s vocabulary is too advanced. It’s something worse.
I get lost trying to follow even a paragraph written by Claude. It’...
New
This showed up on my feed.. anyone heard of it? Just hype?
Ox Alpha is a reasoning model designed for coding, sustained ag...
New
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hauleth
Version 0.1.1 released and 0.1.0 was yanked as I spotted bug where
PhoenixBakery.Gzipwas producing no output due to fact that I forgot to correct output type. Added tests for that as well as set GitHub Actions for CI.Oh, and also required Elixir version was lowered to 1.11 (due to fact that I use
:tmp_dirin tests, and that prevents me from using 1.10 or earlier.tensiondriven
I’d love to see some charts showing the compression difference, if its substantial i think a lot of people would use this.
Thanks for making and sharing it!!
hauleth
Sure, will make them (or just steal them from someone else who made such comparison ;))
hauleth
Added new section to the README:
Compression gains
Test files are composed out of Phoenix JS 1.6.2 library and Phoenix LiveView JS 0.16.4 bundled with ESBuild 0.12.17 installed from NPM repository, bundled using command
First we will declare our baseline. These are “regular” bundle and minified bundle and the same files compressed with default
Phoenix.Digest.Gzipcompressor shipped with Phoenix:These are results produced by the compressors available in this package:
This show us that with this input file we gain only a little bit better results for GZIP compression (<1% for non-minified and <0.5% for minified), but quite substantial for different compression methods, namely:
When compared with default compression from Phoenix.
ZSTD while it provides slightly worse compression ratio it provides better decompression times, which may be preferred on slower or low powered devices.
hauleth
Released 0.1.2
Mostly fixes related to the CI, documentation and compatibility with newer Phoenix releases.
hauleth
Released v1.0.0
It is mostly done, so I decided to release v1.0.0
New things:
zstdmodule when available (OTP 28+)