a tiny speedup, seems like -O2 doesn't do that by itself