julia
54159254 - Docs: Update dispatch benchmark link in performance tips (#59523)

Commit
102 days ago
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 <virals@gmail.com>
Parents
Loading