From: Adrien <camaradetux@gmail.com>
To: Diego Olivier Fernandez Pons <dofp.ocaml@gmail.com>
Cc: Oliver Bandel <oliver@first.in-berlin.de>,
Gabriel Scherer <gabriel.scherer@gmail.com>,
caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] print_int is too slow
Date: Sun, 24 Jun 2012 21:48:37 +0200 [thread overview]
Message-ID: <CAP5QFJm2VMA9f9oz9y22-s-4uuY4OYVqspj23gVi7fP_-mppEQ@mail.gmail.com> (raw)
In-Reply-To: <CAHqiZ-JOw4n1bZO_WiS5qpyHLHfK3epz0WuL2nnB36B61y=4cA@mail.gmail.com>
For bigger strings, it could be interesting to use the Buffer module,
and Buffer.output_buffer in particular.
(as usual: benchmark first)
Also, you can change the flushing behaviour iirc (each char, at
newlines, or never flushed automatically).
And also, writing to string (or buffer) and using the Unix module is
probably what would give the most flexibility.
--
Adrien Nader
next prev parent reply other threads:[~2012-06-24 19:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-24 18:40 Diego Olivier Fernandez Pons
2012-06-24 18:59 ` Gabriel Scherer
2012-06-24 19:08 ` Diego Olivier Fernandez Pons
2012-06-24 19:18 ` Oliver Bandel
2012-06-24 19:26 ` Diego Olivier Fernandez Pons
2012-06-24 19:48 ` Adrien [this message]
[not found] ` <20120624.220220.2022399462583597382.Christophe.Troestler@umons.ac.be>
2012-06-24 22:19 ` Diego Olivier Fernandez Pons
2012-06-24 23:06 ` Lukasz Stafiniak
2012-06-24 23:52 ` Anthony Tavener
2012-06-25 0:09 ` Diego Olivier Fernandez Pons
2012-06-25 11:39 ` oliver
2012-06-25 13:04 ` Gabriel Scherer
2012-06-25 14:25 ` oliver
2012-06-25 17:31 ` Florian Weimer
2012-06-25 10:07 ` Goswin von Brederlow
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=CAP5QFJm2VMA9f9oz9y22-s-4uuY4OYVqspj23gVi7fP_-mppEQ@mail.gmail.com \
--to=camaradetux@gmail.com \
--cc=caml-list@inria.fr \
--cc=dofp.ocaml@gmail.com \
--cc=gabriel.scherer@gmail.com \
--cc=oliver@first.in-berlin.de \
/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