oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.76k stars 220 forks source link

file slurp/dump and profiling refactor #2005

Closed jagerman closed 1 year ago

jagerman commented 1 year ago

While tracking down a segfault in router/profiling, I encountered some code using llarp_buffer_t in various cursed ways that was easier to refactor than to decipher, so I did then. Then I also found tons of code that was doing its own binary slurp/dump routines in 50 different places, so I refactored those, too.