On Fri, 10 Feb 2006, Xavier Bestel wrote:
> On Fri, 2006-02-10 at 01:13, Behdad Esfahbod wrote:
> > * For two letter sequences, use a struct { char seq[3], uchar
> > handler } for a total of 1.2kb and no relocations, sorted on seq.
>
> Make that { char seq[2], uchar handler } for a total < 1k, and a simpler
> comparison : *(gint16*)s[i].seq == *(gint16)letters
Ok thanks. Just implementing :). Not sure if no padding is
added though.
--behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
_______________________________________________
Performance-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/performance-list