in reply to Re^12: Why does each() always re-evaluate its argument? ("for_list" )
in thread Why does each() always re-evaluate its argument?
Of course this can only be used if it isn't magical or tied and so on, but it would be way faster than calling hv_iternext, inlined or not.STRLEN max = HvMAX(hv); STRLEN i; for (i = 0; i <= max; i++) { HE *entry = (HvARRAY(hv))[i]; for (; entry; entry = HeNEXT(entry)) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Why does each() always re-evaluate its argument? ("for_list" )
by ikegami (Patriarch) on Dec 11, 2023 at 14:08 UTC | |
by NERDVANA (Priest) on Dec 11, 2023 at 22:20 UTC | |
by ikegami (Patriarch) on Dec 12, 2023 at 05:16 UTC |