caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Performance-cost of ^
@ 2003-03-26  9:52 Oliver Bandel
  2003-03-26 10:03 ` Basile STARYNKEVITCH
  2003-03-26 12:28 ` Damien Doligez
  0 siblings, 2 replies; 5+ messages in thread
From: Oliver Bandel @ 2003-03-26  9:52 UTC (permalink / raw)
  To: caml-list

Hello,

I'm reading in a file linewise.
For some operations I need it as
one long string.

How to acchieve this performant?
Is it ok to use ^ for a list of lines
(with  List.fold_right? or List.fold_left?)

Or is to better to read in the file
with the help of the Buffer-module
and split the read file into lines later,
if operations on lines are necessary?

TIA,
   Oliver


-- 
Word Processors: Stupid and Inefficient

           http://www.ecn.wfu.edu/~cottrell/wp.html

-------------------
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-30 10:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26  9:52 [Caml-list] Performance-cost of ^ Oliver Bandel
2003-03-26 10:03 ` Basile STARYNKEVITCH
2003-03-26 12:28 ` Damien Doligez
2003-03-28 16:21   ` Christian Lindig
2003-03-30 10:20     ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).