Commit 234e343
committed
fix: prototype pollution
for curiousity’s sake, I checked if this has any
significant performance impact and it does not.
Based on 10 runs before and after, all values in
percent:
MED AVG
get first level property 0.37 0.42
get second level property 0.40 0.61
get third level property 0.26 0.41
set first level property 2.25 2.16
set second level property 1.45 1.67
set third level property 2.05 1.98
push property into array -0.41 -0.51
2.25% slowdown as a worst case is not significant.1 parent dc3ea9b commit 234e343
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 | | |
0 commit comments