3 ms·
A quick performance hack that would help a lot is that you should cache trends to disk and only generate new trends if the previously generated trends are too s
by shalmanese 13y ago
A quick performance hack that would help a lot is that you should cache trends to disk and only generate new trends if the previously generated trends are too stale.
You're doing a lot of unnecessary computation calculating trends fresh for every user.