[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimization of ‘peek-char’

From: Ludovic Courtès
Subject: Optimization of ‘peek-char’
Date: Thu, 16 Sep 2010 00:20:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)


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

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


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]