From: benthecarman Date: Thu, 8 Feb 2024 17:57:13 +0000 (+0000) Subject: Worlds smallest optimization X-Git-Tag: v0.0.123-beta~73^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0769b22f5c40854c8048a320bcd1625ea2461c3c;p=rust-lightning Worlds smallest optimization Preallocate for 8 items in the vec. I chose this value for 1. features 2. description 3. payment hash 4. expire time 5. min_final_cltv 6. payment secret 7. route hint 8. for the memes --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index df0412bfc..610f739e5 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -550,7 +550,7 @@ impl InvoiceBuilder