Commit 022f932
Reuse the array returned by match (#89)
Instead of basically making a copy and letting the original go out of scope immediately after.
This makes a surprisingly large performance difference in Chrome, not so much in Firefox.1 parent 6558a55 commit 022f932
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | | - | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
0 commit comments