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

optimize(IO): reduce memory usage during reading data from files to F… #642

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

apocelipes
Copy link
Contributor

…Fstrbufs

Avoid unnecessary calls of ffStrbufEnsureFree and only allocate necessary memory.

In most cases, this will save 30% ~ 50% of memory used by ffAppendFDBuffer.

src/common/io/io_windows.c Outdated Show resolved Hide resolved
…Fstrbufs

Avoid unnecessary calls of ffStrbufEnsureFree and only allocate
necessary memory.

In most cases, this will save 30% ~ 50% of memory used by ffAppendFDBuffer.
@apocelipes apocelipes force-pushed the optimize-ffAppendFDBuffer branch from 03ca7d0 to e55bf48 Compare December 3, 2023 11:36
@CarterLi CarterLi merged commit 4868517 into fastfetch-cli:dev Dec 3, 2023
18 checks passed
@apocelipes apocelipes deleted the optimize-ffAppendFDBuffer branch December 21, 2023 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants