Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Strange slowness of input_line on mingw
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yaron M. Minsky <yminsky@C...>
Subject: Re: [Caml-list] Strange slowness of input_line on mingw
I think the whole wc-connection is a bit of a distraction here.  It was
just a way of benchmarking the two implementations.  The basic issue is
that for some reason the same input_line based code is about 50-70 times
slower on mingw than it is on Linux.  I just wc as a way of making it
clear that the difference was not due to hardware differences between the
platforms.
That said, it might be useful to do something like what you suggest, since
it would make it clear whether input_line is the problem, or whether it's
a generalized problem with the i/o system.
y

>
> BTW, what about re-implementing wc in ocaml using direct reading of the
> file without creating strings, and measure the time taken by this ?
>
> Friendly,
>
> Sven Luther
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives:
> http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs
> FAQ: http://caml.inria.fr/FAQ/ Beginner's list:
> http://groups.yahoo.com/group/ocaml_beginners


-- 
|--------/            Yaron M. Minsky              \--------|
|--------\ http://www.cs.cornell.edu/home/yminsky/ /--------|

Open PGP --- KeyID B1FFD916 (new key as of Dec 4th)
Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916



-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners