~10% faster, partial manual in-lining, GCC compatible