mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 17:39:58 +00:00
This patch enables more data series to be plotted on a CP plot. We can now show curves for heartrate, cadence, speed and torque as well as the original power and energy. The CP code is refactored into the plotting functions and a new RideFileCache that precomputes the mean-max as well as distribution data (for a later patch to show histograms across date ranges). The code for computing mean-max values has been re-written and significantly optimised by; * computing 1s intervals up to 5mins only * computing 20s intervals for the remainder of the ride * downsampling data to 5s samples for longer durations * using a binary file format (cpx) for faster read/aggregation * using multiple threads Testing on an old Athlon dual-core showed an increase in performance over the old cpi code of approximately x20, but since new data series are now computed it is only x4 faster. Quad/Octo core systems will show a greater performance increase though.
17 KiB
17 KiB