]> git.bitcoin.ninja Git - rust-lightning/commit
Worlds smallest optimization
authorbenthecarman <benthecarman@live.com>
Thu, 8 Feb 2024 17:57:13 +0000 (17:57 +0000)
committerbenthecarman <benthecarman@live.com>
Thu, 8 Feb 2024 22:40:48 +0000 (22:40 +0000)
commit0769b22f5c40854c8048a320bcd1625ea2461c3c
tree934da9427a011d47adfe20f93bdd785c36f823b6
parentc93b59e13d348bb86032a97cade231afd35f5a99
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