[Top][All Lists]
[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
immstr.patch
Description: Text document
- immediate strings,
Dmitry Antipov <=
- Re: immediate strings, Andreas Schwab, 2011/11/26
- Re: immediate strings, Paul Eggert, 2011/11/26
- Re: immediate strings, Eli Zaretskii, 2011/11/26
- Re: immediate strings, Dmitry Antipov, 2011/11/26
- Re: immediate strings, Paul Eggert, 2011/11/26
- --with-wide-int, Stefan Monnier, 2011/11/27
- Re: --with-wide-int, Paul Eggert, 2011/11/28
- Re: --with-wide-int, Stefan Monnier, 2011/11/28
- Re: --with-wide-int, Dan Nicolaescu, 2011/11/28