The fact that it's faster than the C implementation that surely had more time and effort put into it doesn't look good for C here.
EDIT: but I do agree that starting greenfield from an old code base is often a path towards performance.
How do you know this exactly?