diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-05 15:02:04 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-05 15:02:04 +0200 |
commit | bc7214228a10b613057a8c319534d2fd4560175f (patch) | |
tree | 1918e920192d43b2cef60d89921b43f5f52ddf36 /openpgp/build.rs | |
parent | fe58f69466d947f51d7bd43e474f5fec2e8e7cc9 (diff) |
openpgp: Don't put the packet body in the map unless we're buffering
- Previously, Sequoia would buffer packet bodies when mapping is
enabled in the parser, even if the packet parser is not
configured to buffer the bodies. This adds considerable
overhead.
- With this change, Sequoia no longer includes the packet bodies in
the maps unless the parser is configured to buffer any unread
content.
- This makes parsing packets faster if you don't rely on the packet
body in the map, but changes the default behavior. If you need
the old behavior, please do adjust your code to buffer unread
content.
Diffstat (limited to 'openpgp/build.rs')
0 files changed, 0 insertions, 0 deletions