7 Commits

Author SHA1 Message Date
tomFlowee d7b46c7cea Update numbers to 2026 2026-04-15 00:07:09 +02:00
tomFlowee 2d0f94340f fix signed/unsigned comparisons. 2026-04-12 13:52:45 +02:00
tomFlowee bc47a700a4 Refactor; wrap BufferPool in shared_ptr
As we moved most of the creation of a BufferPool to be via the
Streaming::pool() method, which uses a thread-local, it makes sense
to start cleaning up the design and make it more modern C++.
The above mentioned method would return a reference and you'd see
loads of places use `auto &pool =` which is less than ideal.

As the number of places where we actually instantiate a BufferPool
goes down, the usage of some sort of smart pointer makes more sense.

This now makes all APIs use BufferPool be wrapped in a shared_ptr.
2023-12-21 15:23:23 +01:00
tomFlowee e576187650 Some comments. 2021-06-15 22:26:14 +02:00
TomZ 8e269a2ea8 Fix initialization order 2020-03-05 23:29:53 +01:00
TomZ 028fff30a2 Make clang happy 2019-09-07 20:26:53 +02:00
TomZ 31650b7340 Squashed commit of the utxo-lockfree-map branch
Replace the m_buckets unsorted map with a lock-free version
based on atomic pointers. (BucketMap)
remove the m_leafs and move those into the bucket struct.
Make the access to the jumptable transactional to avoid one big lock
over all datastructures.

On my threadripper 2990WX the entire 150GB BCH blockchain was
parsed and imported in under 3 hours.
2019-02-23 15:33:22 +01:00