Lots of modules in the stdlib are written in C.
Either the implementation or the compiler is lacking some optimization.
Lots of modules in the stdlib are written in C.