[systemd-devel] [PATCH, REVIEW] Added unit enabled-context cache to improve performance w/ many units.

Ken Sedgwick ksedgwic at bonsai.com
Tue Oct 7 13:28:38 PDT 2014


The attached patch adds an EnabledContext cache so systems with 1000s of
units do not suffer
O(N^2) performance when determining unit state.  The test-enabled unit test
(added to master under other patch)
is used to confirm that the returned states are the same as the current
master.

Please review.

Many thanks in advance,

Ken

-- 
Ken Sedgwick
Bonsai Software, Inc.
http://www.bonsai.com/ken/
(510) 269-7334
ken at bonsai.com
Public Key: http://www.bonsai.com/ken/ken.asc
GPG Fingerprint: 851E 3B07 E586 0843 9434  5CC7 4033 3B9B 3F3F 9640
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141007/fc5f2fbc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enabled-cache2.patch
Type: text/x-patch
Size: 55592 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141007/fc5f2fbc/attachment-0001.bin>


More information about the systemd-devel mailing list