Re[3]: [Haskell-cafe] Preferred way to get data from a socket

2007-06-27 Thread Bulat Ziganshin
Hello Bulat, Wednesday, June 27, 2007, 3:34:02 PM, you wrote: >> What machine did you do the IO benchmarks on? Since we get well over 10x >> that speed word writing in Data.Binary now, for example, on a fast >> machine. (Duncan, what's the max throughput we've seen?) > test box was Duron 1.2 GHz

Re[2]: [Haskell-cafe] Preferred way to get data from a socket

2007-06-27 Thread Bulat Ziganshin
Hello Donald, Wednesday, June 27, 2007, 11:40:28 AM, you wrote: >> using my library should allow 30-50 mb/s i/o speed but its >> installation may be tricky since it was not updated over a year > That's interesting, Bulat. Two points I'd like to ask about the streams > library: > What machine d

Re: [Haskell-cafe] Preferred way to get data from a socket

2007-06-27 Thread Donald Bruce Stewart
bulat.ziganshin: > Hello Donald, > > Wednesday, June 27, 2007, 6:37:07 AM, you wrote: > > >> I also know Bulat Ziganshin had put together a nice-looking Streams > >> library (http://unix.freshmeat.net/projects/streams/) based on John > >> Goerzen's previous HVIO work, but I wasn't sure if the Byt

Re[2]: [Haskell-cafe] Preferred way to get data from a socket

2007-06-27 Thread Bulat Ziganshin
Hello Donald, Wednesday, June 27, 2007, 6:37:07 AM, you wrote: >> I also know Bulat Ziganshin had put together a nice-looking Streams >> library (http://unix.freshmeat.net/projects/streams/) based on John >> Goerzen's previous HVIO work, but I wasn't sure if the ByteString >> stuff matches the sp

Re: [Haskell-cafe] Preferred way to get data from a socket

2007-06-26 Thread Donald Bruce Stewart
chad.scherrer: > Ok, cool. FWIW, the current documentation for Network says: > > "For really fast I/O, it might be worth looking at the hGetBuf and > hPutBuf family of functions in System.IO." > > But this looked pretty low-level to me, and I figured it might be outdated. > > I also know Bulat Z

Re: [Haskell-cafe] Preferred way to get data from a socket

2007-06-26 Thread Chad Scherrer
Ok, cool. FWIW, the current documentation for Network says: "For really fast I/O, it might be worth looking at the hGetBuf and hPutBuf family of functions in System.IO." But this looked pretty low-level to me, and I figured it might be outdated. I also know Bulat Ziganshin had put together a ni

Re: [Haskell-cafe] Preferred way to get data from a socket

2007-06-26 Thread Donald Bruce Stewart
chad.scherrer: > I've never used sockets before, but I need to now, and I need to be > able to get a lot of data quickly. I was thinking about doing > something like this (below), but I'm wondering if there's a way that > would be faster. Is the obvious way of doing this "the right way"? I'm > happ

[Haskell-cafe] Preferred way to get data from a socket

2007-06-26 Thread Chad Scherrer
I've never used sockets before, but I need to now, and I need to be able to get a lot of data quickly. I was thinking about doing something like this (below), but I'm wondering if there's a way that would be faster. Is the obvious way of doing this "the right way"? I'm happy to install outside lib