davedelong / time

Robust and type-safe date and time calculations for Swift
MIT License
2.32k stars 77 forks source link

Slow initialisation #50

Closed alexjameslittle closed 7 months ago

alexjameslittle commented 4 years ago

When initialising an Absolute TimePeriod we are seeing very slow performance. It is taking 90ms+ to initialise a time period. Also getting bad performance when trying to add or subtract from time periods. Please see the attached image of the time profile I ran which leads me to the TimePeriod initialiser and the subtracting of time period.

Screenshot 2020-06-23 at 13 13 11
davedelong commented 7 months ago

@alexjameslittle the code path referenced in your screenshot no longer exists. Are you still having issues with initialization times?

alexjameslittle commented 7 months ago

It's been a while since we used this library so it's probably best to close this issue