diff options
author | Neal H. Walfield <neal@sequoia-pgp.org> | 2024-01-23 16:11:43 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@sequoia-pgp.org> | 2024-01-23 16:15:17 +0100 |
commit | 8354a954b2b0c25ee142475de88328cb8f49d270 (patch) | |
tree | 2bb6d0d46c79a0cdce1aa1e0ef8f6194be0a70e3 /openpgp/src/packet/unknown.rs | |
parent | 0fa2a240fceee0d317e90be939fe0729ea2df9dd (diff) |
openpgp: Avoid unnecessary heap allocations when creating UserIDs.
- When creating a `UserID`, avoid unnecessary heap allocations by
making better use of what we have. For example, we can directly
convert a `String` to a `Vec<u8>` without allocating a `Vec<u8>`,
and copying the contents.
Diffstat (limited to 'openpgp/src/packet/unknown.rs')
0 files changed, 0 insertions, 0 deletions