It wouldn't be just for speed.  It makes the API simpler - which is, IMO, more important than any potential performance gains.  Couldn't you just do a `grep 'Bid<.*>::Ptr' -l | xargs sed -i 's/Bid<\(Material\|GenericResource\)>::Ptr/Bid<\0>*'` or something similar to get most of it?