Skip to content
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

Config can partially be shared between Storages #277

Open
ikopylov opened this issue May 17, 2023 · 0 comments
Open

Config can partially be shared between Storages #277

ikopylov opened this issue May 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ikopylov
Copy link
Member

Config is a big structure. If many Storage instances are created within the application, then the config introduces a large overhead. Most of the config parameters are non-specific and can be shared between storage instances, which will reduce memory consumption.
The idea is to split the Config into specific (stores work_dir and some other parameters) and shared one and make the ability to build it with Builder. Probably, this will require to create separate Builder struct for this purpose

@ikopylov ikopylov added the enhancement New feature or request label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant