summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/mod.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@sequoia-pgp.org>2024-01-23 16:11:43 +0100
committerNeal H. Walfield <neal@sequoia-pgp.org>2024-01-23 16:15:17 +0100
commit8354a954b2b0c25ee142475de88328cb8f49d270 (patch)
tree2bb6d0d46c79a0cdce1aa1e0ef8f6194be0a70e3 /openpgp/src/packet/mod.rs
parent0fa2a240fceee0d317e90be939fe0729ea2df9dd (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/mod.rs')
0 files changed, 0 insertions, 0 deletions