in reply to Re: Perl threads loss of performance with system call
in thread Perl threads loss of performance with system call

What "a pure perl solution" would be? Cause the program I have to call is a program that performs a very specific analysis, and I cannot just rewrite it in Perl. Also, if you take my code, and replace the backticks with qx or system, the result is always the same.
  • Comment on Re^2: Perl threads loss of performance with system call

Replies are listed 'Best First'.
Re^3: Perl threads loss of performance with system call
by karlgoethebier (Abbot) on Jul 14, 2021 at 01:21 UTC

    I guess you are a little bit resistant to advice. «Beratungsresistent» as we say in German. Please provide more details. Else I abandon all hope. Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      I do not understand what the importance of the "exact program" is, as other commands (such as echo) replicate the issue. But that said, this is the program: RNAfold from the ViennaRNA suite (https://www.tbi.univie.ac.at/RNA/).

        Probably it matters. From ibidem:

        «Perl Bindings...The RNA module to access RNAlib C-library functions from within Perl scripts»

        I understand this like this: You don’t need to shell-out. You can do the stuff in pure Perl. If you fork or use threads is your design decision.

        Update: See here

        «The Crux of the Biscuit is the Apostrophe»