Commit b057f49
docs(material/autocomplete): use single map instead of two maps in a row (#25167)
* docs(material/autocomplete): use single map instead of two maps in a row
The example code is highly trusted and sometimes
taken as is (copy-paste), so it is important to
have it optimized if possible.
Each map means an iteration over the array items.
By using single map, an iteration is saved, and
an approximate performance of about 38% is won.
* docs(material/autocomplete): add trailing comma
(cherry picked from commit 8ca012f)1 parent e9aaa76 commit b057f49
File tree
1 file changed
+4
-2
lines changed- src/components-examples/material/autocomplete/autocomplete-display
1 file changed
+4
-2
lines changedsrc/components-examples/material/autocomplete/autocomplete-display/autocomplete-display-example.ts
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments