Bug#316468: [Pkg-sysvinit-devel] Bug#316468: Implement,
but assist backporters?
jay at excession.spiral-arm.org
Thu Jan 5 15:16:54 UTC 2006
On Thu, Jan 05, 2006 at 12:33:33PM -0200, Henrique de Moraes Holschuh wrote:
> > Is "-delete" is no slower than the current "-print0 | xargs rm" code?
> > I'll assume so.
The -delete action corresponds to a direct call to unlink. Therefore
it is faster than the "-print0 | xargs" method. In theory on some
systems xargs -P could be faster (i.e. ones with many CPUs and many
spindles) but it's rather unlikely.
> It might be a bit slower (extra fork, pipe setup), but it won't make much
> of a difference, either way. I doubt it is in the easily measurable land.
I'd expect the difference to be measurable for deep directory
hierarchies, but have not measured it myself.
> > How about we make this change but encapsulate the find call in a function
> > in order to assist the sarge backporters? The sysvinit packages already
> > require modification for use in sarge.
> IMHO It makes no sense to do such a change and place it in a function call,
> the function call is probably slower than the original code to begin with :)
I agree. The conceptual cost of the additional complexity outweighs
More information about the Pkg-sysvinit-devel