From: | "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx> |
Date: | Thu, 14 Dec 2006 01:04:03 +0100 |
:why do we have to call the ctor and dtor anyways? why not do if (oc->cto= :r) oc->ctor(obj); ? or am i missing something important there? : :cheers : simon
I was operating under the assumption that the objcache would normally have a ctor / dtor function, so I didn't want to add another conditional to that path. This isn't entirely true any more... or rather, only the mbuf subsystem really uses the feature.
Ok, I AM a bit on the fence here. I know that implementing M_ZERO adds one conditional to the hot path, but the M_ flags (like M_NOWAIT) are kinda integral to the allocation subsystem and I don't want to throw one away just to save a few nanoseconds.
cheers simon
-- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
signature.asc
Description: OpenPGP digital signature