Commit dbb6ffb
committed
Change the
This method is only used with loops, and it should be a tiny bit more efficient to use an iterator directly rather than first iterating through the underlying data to create a temporary `Array` that we finally iterate through at the call-site.
*Please note:* As port of these changes the chars/glyph caches, on the `Font` instances, are changed to use `Map`s rather than Objects.Font.prototype.glyphCacheValues method to return an iterator1 parent 8bbb7c8 commit dbb6ffb
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
972 | 976 | | |
973 | 977 | | |
974 | 978 | | |
| |||
981 | 985 | | |
982 | 986 | | |
983 | 987 | | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
| |||
3385 | 3386 | | |
3386 | 3387 | | |
3387 | 3388 | | |
3388 | | - | |
| 3389 | + | |
3389 | 3390 | | |
3390 | 3391 | | |
3391 | 3392 | | |
| |||
3480 | 3481 | | |
3481 | 3482 | | |
3482 | 3483 | | |
3483 | | - | |
| 3484 | + | |
| 3485 | + | |
3484 | 3486 | | |
3485 | 3487 | | |
3486 | 3488 | | |
3487 | 3489 | | |
3488 | | - | |
| 3490 | + | |
3489 | 3491 | | |
3490 | 3492 | | |
3491 | 3493 | | |
| |||
3517 | 3519 | | |
3518 | 3520 | | |
3519 | 3521 | | |
3520 | | - | |
| 3522 | + | |
| 3523 | + | |
3521 | 3524 | | |
3522 | 3525 | | |
3523 | 3526 | | |
| |||
3549 | 3552 | | |
3550 | 3553 | | |
3551 | 3554 | | |
3552 | | - | |
| 3555 | + | |
3553 | 3556 | | |
3554 | 3557 | | |
3555 | 3558 | | |
| |||
0 commit comments