Re: [PATCH] libudev: Allocate udev_device->envp lazily

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

 



On Tue, Oct 21, 2008 at 12:11, Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> wrote:
> Allocate udev_device->envp lazily
>
> It's a pity to allocate 128 words when we don't need them.
> Measured 2% _user_ cpu time reduction on EeePC coldplug.

Any idea what might take 2% here? We don't do anything if the envp
isn't used. We do almost the same thing with or without the patch
besides that "struct udev_device" is 1016 bytes smaller now, and we
malloc() it.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux