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

Cleanup Jobs + Benchmark tool #4

Merged
merged 6 commits into from
Jul 12, 2023
Merged

Cleanup Jobs + Benchmark tool #4

merged 6 commits into from
Jul 12, 2023

Conversation

Jm15itch
Copy link
Contributor

I deconstructed some if statement chains into switches and denested some areas, nothing outstanding.

I also added a benchmarking tool that checks the speed of specific functions, I was using this to identify the internal speed of these functions.

Jm15itch added 6 commits July 12, 2023 07:16
removed large nestings and changed the if statements into switches when handling input so it's faster.
More Switches! :D
This should simplify this cursor selection section while adding a little bit of performance.
I added a benchmark tool (./tuxpusher -bm) that benchmarks certain functions so it's easier to optimize.
The benchmarks were returning wrong numbers due to the first round of sampling requiring initialization of global/static variables in some functions.
@mrbid mrbid merged commit 686a10e into mrbid:main Jul 12, 2023
@mrbid
Copy link
Owner

mrbid commented Jul 12, 2023

nice work on that benchmarking function

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