-
Notifications
You must be signed in to change notification settings - Fork 20.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduce memory rusage during test runs #21904
Comments
core package
func NewDatabaseWithConfig(db ethdb.Database, config *trie.Config) Database {
csc, _ := lru.New(codeSizeCacheSize)
return &cachingDB{
db: trie.NewDatabaseWithConfig(db, config),
codeSizeCache: csc,
codeCache: fastcache.New(codeCacheSize), Might be that we don't even need such a cache for the tests, or if we do, maybe 16K is sufficient (EDIT: apparently 32Mb is the minimum cache capacity for fastcache) |
@holiman you seem to have a good setup running, could you test |
|
Btw, here are the top 25 slowest tests on appveyor:
|
This is pretty stale now, closing |
It would be neat to reduce the memory usage when running tests, making it run smoother on both CI and when running on your laptop.
Here's an allocation chart of running all tests in the
les
folder, I'll add some other parts later. I think there are a lot of low-hanging fruits to pick, e.g. like #21882 (comment).The text was updated successfully, but these errors were encountered: