Speed up the decoding of nodes a bit.
Added benchmark code