ljedrz

Results 80 issues of ljedrz

This PR persists the current batch proposal to the disk on shutdown, and loads it on startup when available, deleting it afterwards. Filing as a draft until it's sufficiently tested....

Heap profiling indicates that plenty of allocations currently come from the use of `rocksdb_readoptions_create`, which is an FFI function called internally from `get_pinned`. This can easily be avoided by creating...

Most of the rocksdb keys are relatively small, and we can avoid allocating them by using a `SmallVec`. Based on the heap profiles `jemalloc` is able to reuse this memory,...

As requested in https://github.com/AleoHQ/snarkOS/issues/3251, and it works in the related scenario ([preview branch](https://github.com/ljedrz/snarkOS/tree/perf/faster_get_pending_certs)). Note: there is also [par_sorted_unstable_by](https://docs.rs/indexmap/latest/indexmap/set/struct.IndexSet.html#method.par_sorted_unstable_by), which would likely be faster; happy to add/substitute if desirable.

Despite the tiny diff and the somewhat conservative approach, this change has a large impact on deployment+execution runs. In a local test run using the tx cannon, `--dev` nodes, and...

A re-opening of https://github.com/AleoNet/snarkOS/pull/2690; there is also https://github.com/AleoNet/snarkOS/pull/2729 which I had considered to be a simpler alternative, but I believe that both changes are desirable (with this one going in...

This PR clears a peer's `seen_outbound_block_requests` when it gets disconnected. There may be other cache collections (in `Router`) that require this sort of adjustment, and this depends on whether they...

Closes https://github.com/AleoNet/snarkVM/issues/2416.

This is a tiny change I found while pruning my local branches, and I wouldn't want us to miss it. The guard on `atomic_batch` is utilized a lot, which -...

A revival of https://github.com/AleoNet/snarkVM/pull/2458, as requested by @vicsn.