Migrate to Postcard #869
Labels
C-data-infra
Component: provider, datagen, fallback, adapters
S-small
Size: One afternoon (small bug fix or enhancement)
T-core
Type: Required functionality
Milestone
We currently use Bincode for machine-readable data. Postcard is an alternative Serde plugin that trumpets the following goals:
I have found previously that Postcard has a much smaller code size footprint than Bincode (#78 (comment), #866 (comment)), and others have found that it has big wins in memory usage (see here). The second analysis finds that the zlib data size of Postcard is a bit smaller and the CPU performance is a bit slower than Bincode (3.7533 ms for Postcard versus 3.4132 ms for Bincode).
Migrating to Postcard will also help us with the no_std efforts (see #812).
So I would like to propose that we migrate to Postcard for 0.4. If desired, we could keep Bincode around as a feature living alongside Postcard and JSON. I have a slight preference for removing Bincode, simply for the maintenance cost, but I can keep it if people want it.
The text was updated successfully, but these errors were encountered: