emacs-devel
[Top][All Lists]
Advanced

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

immediate strings


From: Dmitry Antipov
Subject: immediate strings
Date: Sat, 26 Nov 2011 06:15:24 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

Small strings (up to 3 bytes on 32-bit, up to 7 bytes on 64-bin) can be 
represented
as 'immediates' of struct Lisp_String, without allocating data separately. I 
observed
two usage scenarios (editing with a few tens of buffers and long 
byte-force-recompile
runs), and in both cases ~10% of live strings are less than 4 bytes long, and 
~30% of
live strings are less than 8 bytes long. So I think it's worth playing with 
such a
little complication.

Dmitry


Attachment: immstr.patch
Description: Text document


reply via email to

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