|
|
Subscribe / Log in / New account

Knock me over with a feather

Knock me over with a feather

Posted Feb 3, 2012 23:02 UTC (Fri) by dlang (guest, #313)
In reply to: Knock me over with a feather by cavok
Parent article: Betrayed by a bitfield

not very many.

if you can even replace two int variables with one bitfield, you may shrink your datastructure enough to have it fit within a CPU cache line. The memory access that can then be avoided can be enough to make a noticeable difference.


to post comments

Knock me over with a feather

Posted Feb 6, 2012 13:32 UTC (Mon) by cavok (subscriber, #33216) [Link]

got it. thank you.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds