codecgen command

codecgen generates static implementations of the encoder and decoder functions for a given type, bypassing reflection, and giving some performance benefits in terms of wall and cpu time, and memory usage.

Benchmarks (as of Dec 2018) show that codecgen gives about

Note that (as of Dec 2018) codecgen completely ignores

In explicit package terms: codecgen generates codec.Selfer implementations for a set of types.

Version
v2.1.3 (latest)
Published
Feb 24, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
1 week ago

Tools for package owners.