Commit 05b3c28
authored
Slightly optimize hash add_new for packed arrays (phpGH-21539)
No need to check for UNDEF, assume the index is undefined. This eliminates the
offset calculation, lookup and type check. Though of course dwarfed by the
conversion to a proper hash table.1 parent 594e002 commit 05b3c28
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | | - | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1115 | 1118 | | |
1116 | 1119 | | |
1117 | 1120 | | |
| |||
0 commit comments