http://qs1969.pair.com?node_id=516881

jithoosin has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,
I doing a project using perl & C. I always use "system" command in C to call perl files and use "GetOptions" in perl files to get those arguments passed from C . That is data is passed between C and perl using pipes ,"popen" command in C. My friends are saying that using perl is slow and moreover the use of pipes make it even slower.

The problem is that i have to call perl files near 40000 times from C during execution and in each of those calls i have to pass entire html pages(text only no images) from C file to perl files using pipes.

I don't believe in converting perl files to C code or to use mod-perl. Is there any other go to increase the speed (eg: like replacing the "system" & "popen" commands by faster alternatives]