[ruby-core:65208] Re: [ruby-trunk - misc #10278] [RFC] st.c: use ccan linked list

From: Eric Wong <normalperson@...>
Date: 2014-09-22 07:05:36 UTC
List: ruby-core #65208
nobu@ruby-lang.org wrote:
> Probably, we should remove `back` member.

Just `back` and making it a singly-linked list?
st_delete would become O(n), unfortunately.

I also do not think going from 48 to 40 bytes makes a difference on most
x86-64 mallocs because (IIRC) the ABI requires 16-byte alignment.

If we can go from 48 => 32 bytes, great!
But I don't see what else to remove while keeping compatibility/speed :<

In This Thread

Prev Next