refactor: Make all calls to options pointers #132

Merged
sam merged 1 commits 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
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2a61464e17
refactor: Make all calls to options pointers
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.