Hello list --
I’m reasonably happy with VM and large buffers since my changes back in
December and January, passing through charcount information from coding
systems to the lstream code, and using skip_ascii () in the no-conversion
coding system.
Now, there are further wins for other use cases to be had, e.g. using
skip_ascii for the ascii-compatible fixed-width coding systems, but the big
thing that’s slowing us down at the moment is the escape-quoted conversion in
the autosave code. I find I’m rushing to save these big VM buffers by hand.
I can’t see any similar optimization we can do that is compatible with
escape-quoted. We can’t skip ASCII characters because the following characters
are all ASCII, and they are the ones that get the preceding ?\x1b that is the
whole point of escape-quoted:
case ISO_CODE_ESC:
case ISO_CODE_CSI:
case ISO_CODE_SS2:
case ISO_CODE_SS3:
case ISO_CODE_SO:
case ISO_CODE_SI:
There’s no particular bit pattern I can come up with that matches most of
ASCII and doesn’t match non-ASCII characters and these characters that need
quoting.
Something we could do to improve this would be to move our autosave files to
UTF-8, where the skip_ascii optimization is available.
Best,
Aidan
--
‘Liston operated so fast that he once accidentally amputated an assistant’s
fingers along with a patient’s leg, […] The patient and the assistant both
died of sepsis, and a spectator reportedly died of shock, resulting in the
only known procedure with a 300% mortality.’ (Atul Gawande, NEJM, 2012)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta