error-chain
error-chain copied to clipboard
Shrink the size of all `Error` types
This commit improves the in-memory size of Error from 7 pointers to 1 pointer.
Errors are in general relatively rare in applications and having a huge error
type ends up generating lots of instructions for moves and such, so this PR
optimizes for size and passing around errors rather than creating errors.
Nice! You just have to update the tests which use pattern matching on the kind. It's also a breaking change so could you update the CHANGELOG?
Updated
Could you rebase please?
Sure thing, done now
When might this pull request be land/be merged?