AMSS0815, why you do not use stdcall calling convention instead C? It is now default in avisynth, and extra avisynth_c.dll is not needed
Your plugin is not very slow!
GreyCstoration method in new GreyC plugin is probably slower:
http://forum.doom9.org/showthread.php?t=123081