-
Notifications
You must be signed in to change notification settings - Fork 26
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
Stop store content in memory for RPMBuilder #100
base: master
Are you sure you want to change the base?
Stop store content in memory for RPMBuilder #100
Conversation
085dd33
to
6f51dfe
Compare
Is this roughly equivalent to what #6 is describing? Without having looked deeply at the PR yet, I think it makes sense to read the payload on-demand, but not necessarily the headers. Headers usually quite small and don't require a lot of memory to store. Doing many small reads is also less efficient than doing a small number of larger (~=8mb) reads. |
I'm going to try to take a step in the right direction with a PR to address #107 A general complication is that
So the first step is just going to be to avoid storing everything twice, once independently in the list of file entries to be processed, and once in the contents of the payload. |
7c00230
to
e064131
Compare
Well, good news) Some tests work now) |
e064131
to
447b9e0
Compare
447b9e0
to
fcc376c
Compare
fcc376c
to
c1d1735
Compare
@dralley hello! Can you review PR and say your thoughts about my PR. Does it make sense to complete it? |
I would hold off on continuing this for the time being. I think there are some interesting ideas here, but I'm not sure about the implementation. There are a couple of bigger problems to address first when it comes to builder memory use, and on the reading side, the introduction of |
PR Content Desc
At the moment,
RPMPackage
store content in memory. This is not good situation. I rewriteRPMPackage
to generic struct.If my idea is ok for maintainers, I will finish the PR.
Closes #
Changes proposed by this PR
Notes to reviewer
📜 Checklist
--all-features
enabled