mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
The current algorithm is CPU intensive and blocks the event loop for multiple seconds in my deployment. This is not acceptable, as other requests can not be answered during that time. I do not have time to fully fix the issue here, but I did implement an optimization for ALL_TIME reports: Before, the all time report was generated for every timeFrame since 1970, which iterated over the listens many hundred times. We can instead only start the interval at the day of the first listen, and therefore skip 50+ years of calculations. |
||
|---|---|---|
| .. | ||
| dto | ||
| interval.d.ts | ||
| reports.controller.spec.ts | ||
| reports.controller.ts | ||
| reports.module.ts | ||
| reports.service.spec.ts | ||
| reports.service.ts | ||
| timeframe.enum.ts | ||
| timePreset.enum.ts | ||