optimizations to match the peformance of C++