delta-client
delta-client copied to clipboard
Optimise `Profiler`
Fixing this issue will give you an introduction to optimising Swift code. If you have no idea where to start, ask on the Discord server and I'll give you some tips and tricks.
Given that the Profiler is used mostly in performance critical places, it would be useful to make it as optimised as possible so that readings are as accurate as possible (if it's too slow it starts noticeably affecting its own readings when nesting).
Some initial tips to get you started:
- Reserve capacity for a collection if you have an approximate idea of how many elements it will have
- Move repeated calculations out of loops
- Cache results if it makes sense
- See OptimizationTips in the official Swift repo for further tips
@stackotter Hey, can you assign me on this one?
Hi, sorry, have no time recently to work on this. Now when i've been laid off from my current job I've more free time 🤡
Hi, sorry, have no time recently to work on this. Now when i've been laid off from my current job I've more free time 🤡
I'm sorry to hear that man :( I wish you the best in finding a new job! Delta Client is of course second priority to anything else that comes up in your life, so no pressure to complete this task anytime soon
I'm excited for you to contribute again, your first contribution was super useful! Let me know if I can help out with anything
@japanese-goblinn let me know if you want me to assign you again, I'm just going through and unassigning issues that haven't been touched in a while