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

See if files can be held open as references. #466

Open
JakeRoggenbuck opened this issue Nov 11, 2022 · 0 comments
Open

See if files can be held open as references. #466

JakeRoggenbuck opened this issue Nov 11, 2022 · 0 comments
Labels
optimization Optimize the program

Comments

@JakeRoggenbuck
Copy link
Owner

A lot of the read int and read string, which make up a large part of the daemon update call is spent opening and closing files often.
This time can be seen in read_int in green.
image

Here is how much of update read_int and read_str account for.
image

If we saved the files opened as refs, we could remove all of the open/close (blue) blocks in the update (green).
image

@JakeRoggenbuck JakeRoggenbuck added the optimization Optimize the program label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimize the program
Projects
None yet
Development

No branches or pull requests

1 participant