Closed GER-Space closed 5 years ago
this is for: #13
I updated the PR. Yes Its true that this only should be called once
According to this, value-typed variables (int, float, double and structs with only value-typed fields) should be fine to create inside functions as they are created on the stack and don't affect the GC. Also, this would make the code easier to maintain with less class members.
Can you submit a PR for the profile functions so the performance can be compared to the master branch?
Moving declarations far outside loops they are used in does not seem to do anything with performance, at least I have found nothing that would suggest otherwise. Code clarity > negligible performance improvement (if any).
This is a first round of small improvements to reduce memory garbage created by FAR.
functions You create a new Stopwatch with PerfStart (id string), and you can pause or continue or just end it. When ended it will print out the time elaped.