qdf: a Go serializer that decodes less, packs harder, and lets you query the bytes
qdf is a new Go serializer designed to optimize performance and reduce data size. It offers a schemaless approach, achieving up to 68% smaller sizes compared to protobuf and decoding 4–9 times faster than the standard encoding/json. Additionally, qdf allows for selective querying of bytes, making it a unique tool for developers working with serialized data.
- ▪qdf is a schemaless Go serializer that can decode only the requested columns and rows from a byte array.
- ▪It is reported to be up to 68% smaller than protobuf and decodes significantly faster than traditional methods.
- ▪The serializer operates with zero dependencies and utilizes a compact binary format for efficient data handling.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3966198) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Aleksandr Yershov Posted on Jun 3 qdf: a Go serializer that decodes less, packs harder, and lets you query the bytes #go #opensource #serialization #performance TL;DR for the impatient. qdf is a schemaless Go serializer (struct tags, no .proto).
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).