Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Added lock around block writes to reduce memory pressure
Since downloader insert is an asynchronous process, writing thousands of large blocks into the DB at the same time is very memory intensive. Adding this lock will make sure that only one block is written at a time and from the testing in the garden environment this has shown improved performance in memory use while syncing
- Loading branch information