in reply to What is the difference: Calling a (c based) program OR inline c code

An important difference is that you have all the operating system overhead of calling a second program and transfering data to it. If your external program has a big enough task to do and the data you have to exchange between your script and the c program is not too big, that works well. But if you want to speedup some small calculation that is performed a thousand times in your script you will likely make it slower

  • Comment on Re: What is the difference: Calling a (c based) program OR inline c code