GNU bug report logs - #12033
format should be faster

Previous Next

Package: guile;

Reported by: nalaginrut <nalaginrut <at> gmail.com>

Date: Mon, 23 Jul 2012 13:55:02 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


Message #8 received at 12033 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: nalaginrut <nalaginrut <at> gmail.com>
Cc: 12033 <at> debbugs.gnu.org
Subject: Re: bug#12033: format should be faster
Date: Sun, 19 Aug 2012 00:19:31 +0200
Hi!

nalaginrut <nalaginrut <at> gmail.com> skribis:

> Our "format" is rather slow,

What makes you say so?

Did you make sure that the output port you’re writing to is buffered
(this is not the case by default!)?  See ‘setvbuf’.

> can we make it faster?  I can only output strings with display if I
> need an faster program, which is not so elegant.

Until (ice-9 format) is loaded, ‘format’ is an alias for
‘simple-format’, which is implemented in C, less capable but faster than
(ice-9 format).  Perhaps that’s usable for your use case?

Thanks,
Ludo’.




This bug report was last modified 12 years and 357 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.