LWN.net Logo

When in doubt, add another layer of indirection

When in doubt, add another layer of indirection

Posted Jun 3, 2011 12:15 UTC (Fri) by dlang (✭ supporter ✭, #313)
In reply to: When in doubt, add another layer of indirection by jengelh
Parent article: Object-oriented design patterns in the kernel, part 1

but if you have thousands or millions of these in memory the space savings may add up

also, since the cpu runs so much faster than memory does, you can actually do quite a lot of processing in the time saved by avoiding a memory fetch.


(Log in to post comments)

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