Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On Nov 30,  9:09am, martin%duskware.de@localhost (Martin Husemann) wrote:
-- Subject: Re: CVS commit: src/sys

| On Thu, Nov 29, 2018 at 10:07:11PM +0000, Christos Zoulas wrote:
| > >The pool is just called three times, so it's not a big deal.
| > 
| > I don't know, from reading the manual page using the pool_cache_ api seems
| > to be the preferred way... Plus I don't think that a language deficiency
| > should be visible in many places in the code (these memsets appear
| > unnecessary) and if we do them using the pool_cache code we pay the cost
| > once (at construction), not every use (however minor that cost is).
| 
| But it comes at a cost (the per-CPU cache) - how often is this code run?
| 
| Does using compound literals clear the gaps? Example of what I mean
| below (incomplete, just for clarification)

We need to see if the spec says so. I am not sure if we can depend
that an implementation does it.

christos


Home | Main Index | Thread Index | Old Index