You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa8ae9d
Browse filesBrowse the repository at this point in the historyBrowse files
Build the readable input and output text only when it is shown
`BytesContainer::new` pretty-printed every input and output into a
`humanized` string, and `run` deep-copied the input container for the
I/O handler. Batch mode never shows that text, so for large inputs most
of the time per input went to building and copying data that was then
dropped.
- Remove the `humanized` field and implement `Display` for
`BytesContainer`. The text is built only when a result is displayed.
- Move parsed JSON values into the container instead of cloning them.
- `IOHandler` borrows the input instead of taking a deep copy.
- Pass the Function output bytes to the container without a copy.
An output that is not valid JSON or MessagePack now keeps its raw bytes,
so "Output Size" shows the real size instead of 0B.
0 commit comments