[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fast format (was Re: What can I do to help?)
From: |
Daniel Skarda |
Subject: |
Fast format (was Re: What can I do to help?) |
Date: |
06 Oct 2002 10:46:31 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hello,
I think Guile does not have fast formated output (see simple benchmark).
`simple-format' now implements only basic `format' subset. I think that fast
format could be critical for some type of applications, but simple-format does
not even implement simple number (or string) formating.
0.
;--- simple (simple-)format benchmarks: -------------------------------
(use-modules (ice-9 format))
guile> (define p (open-output-file "/dev/null"))
guile> (time (do-ntimes (n 100000) (simple-format p "~s" 3.14159265358979)))
Elapsed time: 1.875558 sec
Real 1.88 sec
User 1.88 sec
Sys 0.0 sec
Gc 0.62 sec
Garbage Collector:
#exec 16
Time 0.62 sec
guile> (time (do-ntimes (n 100000) (format p "~s" 3.14159265358979)))
Elapsed time: 21.257521 sec
Real 21.26 sec
User 21.25 sec
Sys 0.01 sec
Gc 9.44 sec
Garbage Collector:
#exec 244
Time 9.44 sec
- Re: What can I do to help? (conclusions), (continued)
Re: What can I do to help? (conclusions), Evan Prodromou, 2002/10/04
Re: What can I do to help? (conclusions), Rob Browning, 2002/10/04
Re: What can I do to help? (conclusions), Dale P. Smith, 2002/10/04
Re: What can I do to help? (conclusions), Clinton Ebadi, 2002/10/04
Re: What can I do to help? (conclusions), Neil Jerram, 2002/10/04
Fast format (was Re: What can I do to help?),
Daniel Skarda <=