From 0769b22f5c40854c8048a320bcd1625ea2461c3c Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 8 Feb 2024 17:57:13 +0000 Subject: [PATCH] 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 --- lightning-invoice/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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