akhar wrote: > would C code be faster? Yes. > by what factor? Without knowing what you are doing, one can only guess. If you are already using PIL and numpy as implied by your note, then it may be a small factor. If you have any remaining loops within loops, then you would definitely gain by coding that portion in C.