From: "Yaron M. Minsky" <yminsky@CS.Cornell.EDU>
To: <luther@dpt-info.u-strasbg.fr>
Cc: <leypold@informatik.uni-tuebingen.de>, <yminsky@CS.Cornell.EDU>,
<caml-list@inria.fr>
Subject: Re: [Caml-list] Strange slowness of input_line on mingw
Date: Mon, 28 Oct 2002 12:42:41 -0500 (EST) [thread overview]
Message-ID: <33441.192.168.0.100.1035826961.squirrel@dragonfly.localdomain> (raw)
In-Reply-To: <20021028172825.GA27794@iliana>
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
next prev parent reply other threads:[~2002-10-28 17:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-24 14:05 Yaron M. Minsky
2002-10-28 15:26 ` Xavier Leroy
2002-10-28 16:12 ` Yaron M. Minsky
2002-10-28 17:14 ` M E Leypold @ labnet
2002-10-28 17:28 ` Sven Luther
2002-10-28 17:42 ` Yaron M. Minsky [this message]
2002-10-29 0:10 ` Oleg
2002-10-29 1:06 ` Yaron M. Minsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33441.192.168.0.100.1035826961.squirrel@dragonfly.localdomain \
--to=yminsky@cs.cornell.edu \
--cc=caml-list@inria.fr \
--cc=leypold@informatik.uni-tuebingen.de \
--cc=luther@dpt-info.u-strasbg.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox