refactor: Make all calls to options pointers #132

Merged
sam merged 1 commit from pointerize-things into master 2022-10-13 12:49:37 +00:00
Owner

Instead of copying the opts struct every time it gets passed around, it should be created once and passed through reference.

This should reduce memory utilization, unfortunately I cannot test it since this program runs so fast pprof won't report anything useful.

I think I found all of them 🙂

Instead of copying the opts struct every time it gets passed around, it should be created once and passed through reference. This should reduce memory utilization, unfortunately I cannot test it since this program runs so fast pprof won't report anything useful. I think I found all of them 🙂
sam added 1 commit 2022-10-10 14:05:21 +00:00
refactor: Make all calls to options pointers
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2a61464e17
Signed-off-by: Sam Therapy <sam@samtherapy.net>
grumbulon approved these changes 2022-10-12 20:50:04 +00:00
Collaborator

good change idea 🙂

good change idea 🙂
sam merged commit 81da49093d into master 2022-10-13 12:49:37 +00:00
sam deleted branch pointerize-things 2022-10-13 12:49:37 +00:00
Sign in to join this conversation.
No description provided.