switch to passing pointers in high-use functions

to get back thirty percent performance hit from the last change