This is definitely an area where pack v4 will bring that cost down to
zero.
Heh. I believe that when I see it. The thing is, unless you re-generate
the tree object data structures, you'll have to have totally different
tree walkers for different tree types, and it will all be quite ugly and
complex. And "ugly and complex" seldom translates into "zero cost".
Linus