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

*nix: don't read the whole files at once #27

Closed
rdbo opened this issue Dec 18, 2022 · 1 comment
Closed

*nix: don't read the whole files at once #27

rdbo opened this issue Dec 18, 2022 · 1 comment

Comments

@rdbo
Copy link
Owner

rdbo commented Dec 18, 2022

It would be more optimized to read a section of the /proc/<pid>/maps file at a time and parse it; if the results were found, free the buffer and return; else, just read once again. This might be applicable to other files, such as /proc/<pid>/status, but since they're not so big, it might not be necessary for performance increase. Instead, it might be a good idea to read until the end of life and pass the read line to a function.

@rdbo
Copy link
Owner Author

rdbo commented Dec 24, 2022

Done: from 1ec4676 to 1a48c25

@rdbo rdbo closed this as completed Dec 24, 2022
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

No branches or pull requests

1 participant