
If it's still relevant... The problem is that the program sends data
in 8 byte chunks. Every write results in a syscall, context switch and
pushing the chunk through TCP stack, so overhead is great.
BTW, using Bytestring works well enough, my similar program [1] pushes
around 15Gbits through lo interface and saturates 1Gbit ethernet
connection.
[1] https://github.com/alexandermorozov/netperf
Regards,
Alexander
On Sat, Nov 9, 2013 at 5:08 PM, Thomas Bach
On Thu, 2013-11-07 at 14:55 -0800, Bob Ippolito wrote:
I took your code and made a few style cleanups so that hlint wouldn't complain and so that it would be easier to read.
Being able to see those changes you made one by one on github.com was very instructive. Thanks!
The space leak is a strictness issue that is common for Haskell beginners to do. […]
Interesting. I wouldn't have thought of that.
So, the space leak is avoided. Now, how do I get this thing to perform? Profiling the program is probably the way to go. Hopefully I find the time for this this week end.
Regards,
Thomas.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners