Closed philvessey closed 4 years ago
This will also save a lot of iterations when only wanting a specific count of results.
Is this a big refactor job again?
No more kind of changing loop iterations and moving code and removing/adding parameters.
OK great - I have got some benchmarks on how long each call takes now so I can compare.
Okay I will do the optimization during the next days...
I still have this planned and did not forget it. Very busy atm.
Ok no problem :)
Okay, I looked into it. I'd leave it for now like it is. It's getting complicated as ByStop and ByTrip have different approaches of handling the limit. If I fully understood the logic I will do some more refactoring on the refactored part. Any thoughts @philvessey ?
I'm happy to leave as it is - its already pretty fast at returning results depending on the size of the data set of course. I will close this one for now - can always be reopened if we have a change of heart.
Calculate the three days in one loop so that the timezone calculated and so on can be reused. This is likely to improve performance.