There is some unnecessary code running for every node.
Created attachment 456831 [details] Patch
Comment on attachment 456831 [details] Patch r=me
Doesn't seem valuable.