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
Docs: Update dispatch benchmark link in performance tips (#59523)
First off, thanks to everyone who has worked on the (fantastic)
documentation -- it's been a delight to work through it as I learn the
language.
This is PR proposes updating a link in the "Performance tips" section of
the manual.
An existing reference in the "dangers of abusing multiple dispatch"
subsection seems sub-optimal: it currently links to the now-unused Julia
mailing list, and (more relevant) uses pre-v1.0 syntax (i.e.
`immutable`). I made a Discourse post that modernizes Tim Holy's example
of dispatch vs dict vs switch (and points to the old mailing list to
give him credit) to use the current syntax, and using `BenchmarkTools`.
The qualitative conclusion of the post is of course identical to that on
the mailing list; this change is just about providing a up-to-date
resources for new users reading the documentation.
At least one person has responded with yet another alternative
(`Union`-based) and benchmark, so as a minimal change I propose changing
"Some run-time benchmarks... can be found on the mailing list" to
"...can be found on the discourse".
Related Discourse Topic: [Suggestion: updating the dispatch vs.
dict/switch benchmark link in the
manual](https://discourse.julialang.org/t/suggestion-updating-the-dispatch-vs-dict-switch-benchmark-link-in-the-manual/132159)
---------
Co-authored-by: Viral B. Shah <[email protected]>
Copy file name to clipboardExpand all lines: doc/src/manual/performance-tips.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1081,7 +1081,7 @@ JIT-compilation machinery to basically execute the equivalent of a switch statem
1081
1081
lookup in your own code.
1082
1082
1083
1083
Some run-time benchmarks comparing (1) type dispatch, (2) dictionary lookup, and (3) a "switch"
1084
-
statement can be found [on the mailing list](https://groups.google.com/forum/#!msg/julia-users/jUMu9A3QKQQ/qjgVWr7vAwAJ).
1084
+
statement can be found [on discourse](https://discourse.julialang.org/t/suggestion-updating-the-dispatch-vs-dict-switch-benchmark-link-in-the-manual/132159).
1085
1085
1086
1086
Perhaps even worse than the run-time impact is the compile-time impact: Julia will compile specialized
1087
1087
functions for each different `Car{Make, Model}`; if you have hundreds or thousands of such types,
0 commit comments