in reply to Re: Optimizing TCP packet usage with IO::Socket::INET or similar
in thread Optimizing TCP packet usage with IO::Socket::INET or similar

Depending on how important some of your parameters are, you may find yourself abandoning Perl and going with an implementation written in C. That may take longer to develop, but you will almost certainly get better performance.

Actually, it's very unlikely that dropping into C will do anything to improve (or even affect) the throughput performance of tcp comms.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: Optimizing TCP packet usage with IO::Socket::INET or similar

Replies are listed 'Best First'.
Re^3: Optimizing TCP packet usage with IO::Socket::INET or similar
by Bloehdian (Beadle) on Oct 06, 2016 at 15:23 UTC

    o.k., folks, Your replies make my life much easier, because I do not have to code anything regarding tcp packet stuffing. I will leave it up to the geniuses who brought TCP to us.

    But: Does somebody know anything about the compression issue?

    Is it like that, that when I send the data compressed to the socket using Net::EasyTCP, the application on the remote side is responsible for decompressing (i.e., the client cannot "trigger" this). Might seem to be a silly question, but, honestly, I am not a genuine network programmer. ;-)

      the application on the remote side is responsible for decompressing (i.e., the client cannot "trigger" this).

      Absolutely! tcp conveys packets of data from A to B; it neither knows nor cares whether what inside those packets is compressed or not.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.

      Once again, do a benchmark and find out whether compression makes a difference. You can only do so much thinking -- eventually you have to climb the tree. :)

      Alex / talexb / Toronto

      Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.