That3Percent / tree-buf

An experimental serialization system written in Rust
MIT License
256 stars 8 forks source link

Better size diagnostics #8

Closed That3Percent closed 4 years ago

That3Percent commented 4 years ago

The debug output from tree_buf::internal::read_root(&bytes); is useful to get a sense for what a file contains, but for large schemas, it is not organized in a way to answer questions at a glance. See, for example, in #6, that the output is pages long and full of noise.

An experimental API should be added that makes it easy to answer questions like:

These together help to answer what the improvement ceiling would be for any given feature.

That3Percent commented 4 years ago

Closed with 85b420