Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Re-use accounts stores (#12885)#14185

Closed
sakridge wants to merge 1 commit intosolana-labs:v1.4from
sakridge:reuse-stores-backport
Closed

Re-use accounts stores (#12885)#14185
sakridge wants to merge 1 commit intosolana-labs:v1.4from
sakridge:reuse-stores-backport

Conversation

@sakridge
Copy link
Copy Markdown
Contributor

@sakridge sakridge commented Dec 17, 2020

Problem

Creating files and dropping mmap areas can be expensive

Summary of Changes

  • Re-use accounts_db stores

  • Add test for storage finder

Can encounter an infinite loop when the store is too small, but
smaller than the normal store size.

  • Fix storage finding

  • Check for strong_count == 1

  • try_recycle helper

backport of #12885

Fixes #

* Re-use accounts_db stores

Creating files and dropping mmap areas can be expensive

* Add test for storage finder

Can encounter an infinite loop when the store is too small, but
smaller than the normal store size.

* Fix storage finding

* Check for strong_count == 1

* try_recycle helper
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 17, 2020

Codecov Report

Merging #14185 (60d7728) into v1.4 (7424f7b) will increase coverage by 0.0%.
The diff coverage is 93.7%.

@@           Coverage Diff           @@
##            v1.4   #14185    +/-   ##
=======================================
  Coverage   82.2%    82.3%            
=======================================
  Files        382      382            
  Lines      94303    94532   +229     
=======================================
+ Hits       77574    77802   +228     
- Misses     16729    16730     +1     

@stale
Copy link
Copy Markdown

stale Bot commented Dec 25, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale Bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 25, 2020
@stale
Copy link
Copy Markdown

stale Bot commented Jan 2, 2021

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale Bot closed this Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

stale [bot only] Added to stale content; results in auto-close after a week.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant