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]
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|