[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade)
- From: katlogic@...
- Date: Thu, 27 Mar 2014 20:38:41 +0100
On Thu, Mar 27, 2014 at 12:10:35PM -0700, Coroutines wrote:
> I kind of wish another member were added for referencing a string
> after this one. <cut>
Segmented strings/ropes are deceptive. Neat for compression
(keep duplicate segments of trie once) and prefix matching.
For general use, though, it's a very bad idea cpu-cache wise:
x86 cpus just love to memcpy as that operation never leaves
memory controller. Now randomly jumping around memory for
LL traversal introduces data dependency, round-trip latency,
additional unpredictable branches....
Not to mention increased complexity of traversing code which
is difficult to abstract away in C.
- References:
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Roberto Ierusalimschy
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Hisham
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Rena
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), William Ahern
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Andrew Starks
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Dirk Laurie
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Oliver Kroth
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Oliver Kroth
- Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade), Coroutines