Releases: lucasnetau/timebucket
Releases · lucasnetau/timebucket
Performance improvements
Small performance improvements that help with large buckets
- Direct DateTime comparisons
- Hot path for next() removing array count
BugFix
- Ensure timeIndex is relative to timezone
Performance and Test Suite
Move to using a SplMinHeap for ordered inserts of priorities, removes the need to track sorted status and performing krsort during next(), this improves performance drastically for TimeBucket readers are adding and removing elements in loops.
Introduce PHPUnit and tests for major components
Improve ordered insert
Improve the case where data is always inserted in priority order negating the requirement to sort
Performance boost
PHP8.2 compat
Full Changelog: v0.3...v0.3.1
v0.3
Improved PHP8+ support
Implement support for variable minute intervals (eg 5 minute timeslices)
Full Changelog: 0.2...v0.3
Cloneable
Support deep cloning of TimeBuckets
Initial Timezone support
Change TimeBucketImplementationInterface to TimeOrderedStorageInterface Add in initial support for timezoned buckets [WIP]
0.1.0
Allow passing a DateTimeZone object into the constructor in addition …