diff --git a/articles/S7.html b/articles/S7.html index 910ce569..70be6ff9 100644 --- a/articles/S7.html +++ b/articles/S7.html @@ -311,7 +311,7 @@
Learn more about method dispatch in
vignette("generics-methods")
.
A potential optimization is caching based on the class names, but lookup should be fast without this.
The following benchmark generates a class hierarchy of different @@ -194,26 +194,26 @@
And the same benchmark using double-dispatch
bench::press(
@@ -254,26 +254,26 @@ Performance
#> # A tibble: 20 × 8
#> expression num_classes class_nchar min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <dbl> <dbl> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 best 3 15 8.97µs 10.3µs 93975. 0B 28.2
-#> 2 worst 3 15 9.12µs 10.21µs 95343. 0B 38.2
-#> 3 best 5 15 8.95µs 10.02µs 97136. 0B 29.1
-#> 4 worst 5 15 9.48µs 10.57µs 92044. 0B 36.8
-#> 5 best 10 15 8.79µs 10.29µs 93761. 0B 37.5
-#> 6 worst 10 15 9.64µs 10.25µs 95973. 0B 28.8
-#> 7 best 50 15 9.88µs 10.51µs 93666. 0B 28.1
-#> 8 worst 50 15 13.05µs 13.72µs 71860. 0B 28.8
-#> 9 best 100 15 11.01µs 11.66µs 81184. 0B 32.5
-#> 10 worst 100 15 17.6µs 18.72µs 52275. 0B 20.9
-#> 11 best 3 100 9.1µs 10.22µs 95055. 0B 28.5
-#> 12 worst 3 100 9.97µs 10.95µs 88813. 0B 35.5
-#> 13 best 5 100 8.91µs 9.85µs 98921. 0B 39.6
-#> 14 worst 5 100 9.88µs 10.78µs 90679. 0B 27.2
-#> 15 best 10 100 9.11µs 9.96µs 97357. 0B 39.0
-#> 16 worst 10 100 11.26µs 12.26µs 79610. 0B 31.9
-#> 17 best 50 100 10.39µs 11.33µs 85988. 0B 34.4
-#> 18 worst 50 100 19.35µs 20.42µs 48128. 0B 14.4
-#> 19 best 100 100 11.42µs 12.55µs 77198. 0B 30.9
-#> 20 worst 100 100 30.49µs 32µs 30759. 0B 12.3
Property name, primarily used for error messages. Generally
-don't need to set this here, as it's more convenient to supply as a
+don't need to set this here, as it's more convenient to supply as
the element name when defining a list of properties. If both name
and a list-name are supplied, the list-name will be used.