You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was introduced in rails#47129 by
GitHub folks because they need the route pattern in HTML for some reason.
But the overwhelming majority of applications don't need that information,
so there is no point wasting time precomputing it.
Followup: rails#54504
Followup: rails#54491
Same benchmark as: rails#54491 (comment)
```
== index ==
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
after 46.519k i/100ms
Calculating -------------------------------------
after 468.807k (± 0.5%) i/s (2.13 μs/i) - 2.372M in 5.060781s
Comparison:
before: 363898.7 i/s
after: 468807.2 i/s - 1.29x faster
== show ==
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
after 36.443k i/100ms
Calculating -------------------------------------
after 363.585k (± 0.6%) i/s (2.75 μs/i) - 1.822M in 5.011832s
Comparison:
before: 276473.5 i/s
after: 363584.9 i/s - 1.32x faster
== show_nested ==
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin23]
Warming up --------------------------------------
after 33.943k i/100ms
Calculating -------------------------------------
after 339.724k (± 0.2%) i/s (2.94 μs/i) - 1.731M in 5.095599s
Comparison:
before: 246010.1 i/s
after: 339724.5 i/s - 1.38x faster
```
0 commit comments