in reply to Re^11: Why does each() always re-evaluate its argument? ("for_list" )
in thread Why does each() always re-evaluate its argument?
I'm rather surprised they didn't optimize that to just iterate the hashtable directly.
You mean inline hv_iternext? The compiler will do that if appropriate. But that's unlikely since hv_iternext is quite big. It would make no sense to put a copy of that code in the function you showed.
How do you figure? It has to allocate the current size + 1.6MB of ram and initialize all of it.
No initialization is needed.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^13: Why does each() always re-evaluate its argument? ("for_list" )
by NERDVANA (Priest) on Dec 11, 2023 at 07:26 UTC | |
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 |