mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-18 22:05:43 +08:00
Similar to https://github.com/discourse/discourse/pull/40705, also do 1-pass (e.g. `[2.years.ago, now]` then split) instead of 2-pass (`[1.year.ago, now]`, `[2.years.ago, 1.year.ago]`) to improve perf on new dash. | Period | before (first / min) | after (first / min) | approx delta | |--------|---------------------:|--------------------:|------:| | 1yr | 1290.9 / 874.0 ms | 1284.4 / 564.1 ms | −35% | | 3mo | 875.3 / 840.5 ms | 335.4 / 238.3 ms | −72% | | 30d | 287.2 / 286.6 ms | 199.3 / 160.5 ms | −44% | | 7d | 138.2 / 130.7 ms | 72.3 / 72.3 ms | −45% | (I know, that 1 yr is sus, but let's see) |
||
|---|---|---|
| .. | ||
| reports | ||
| has_post_upload_references_spec.rb | ||
| reviewable_action_builder_spec.rb | ||