Honestly, python might perform better overall.  Not because C is slower than python (ha), but because python probably outperforms vim script.  Especially likely because vim plug-ins can be fairly complex.