unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Optimization of ‘peek-char’
@ 2010-09-15 22:20 Ludovic Courtès
  0 siblings, 0 replies; only message in thread
From: Ludovic Courtès @ 2010-09-15 22:20 UTC (permalink / raw)
  To: guile-devel

Howdy,

Commit fd5eec2b6e113f6d13028215a738417607432a2d optimizes ‘peek-char’,
the main motivation being that SSAX uses it a lot[*].

It makes ‘peek-char’ 40x faster on a port whose encoding is #f, 1.9x
faster on a UTF-8 port containing unibyte codepoints, and 1.3x faster on
a UTF-8 port containing multi-byte codepoints (measured using
‘write.bm’).

The ‘xml->sxml’ procedure is 4x faster on the 2.7 MiB XML file that I
used for testing.

There’s still room for optimization, though...

Thanks,
Ludo’.

[*] I just noticed that one line is missing from the commit log.
    Perhaps I should add a git note to fix it?




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-15 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 22:20 Optimization of ‘peek-char’ Ludovic Courtès

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 read-only IMAP folder(s) and NNTP newsgroup(s).