Hmm, without knowing more about your DSL setup, it is hard to say anything definite. As a data point, I wrote a perl program running on Linux 2.4 that skims Usenet (NNTP protocol) and easily saturates my DSL data pipe at 160KB/sec. The best I have ever done on Windows 98 using proprietary programs on the same machine is 140KB/sec for any protocol. The perl code involved no special tricks.

So from personal experience, I think it it is unlikely that perl's socket interface is much worse than the Windows implementation.

One possible difference is that you and he have different upload capacities in your DSL setups - they can easily vary by two orders of magnitude, depending on what you pay for. Also, your friend seems to have an upload capacity of 2 MByte/sec which translates to 20Mbits/sec, for which a 10baseT Ethernet connection would be a bottleneck.

But if your perl code is still suspect after checking out that both your hardware setups are of similar speed, post the relevant portions of your code here so that we can comment on them.

-Mark

In reply to Re: Insane ftp speeds by kvale
in thread Insane ftp speeds by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.