<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hello David,<br><br>We are evaluating performance of Policy Kit apis.<br><br>We looked at the demo code, you have posted at ::http://people.freedesktop.org/~david/timezone/<br>and modified that code, to use PolKitTracker.<br><br>Target Platform:: Ubuntu Hardy system, Dual Core Intel CPU running at 2.4 GHz.<br><br>Took performance metrics for the following two apis<br>polkit_tracker_get_caller_from_dbus_name, Average CPU clock cyles:: 1050<br>polkit_context_can_caller_do_action, Average CPU clock cycles:: 5502000<br><br>Basically above 2 apis will get called by any method exposed by a mechanism to a caller.<br>So in the case of demo code for timezone, inside gnome_clock_applet_mechanism_set_timezone()<br>those 2 apis get called.<br><br>Question1) Just curious to know, if you have any
performance metrics, that you can share with us.<br><br>Question2) Besides that I was concerned that adding io_watches for policy kit config file,<br>policy file directory and auth db file, can be a peformance hit for the mechanism.<br>But based on some reading looks like using Glib's IO channels for those<br>files, minimizes performance impact on running process, can you please confirm.<br><br>Question3) For the hash functionality provided by kit_hash.c source code, is there any <br>hard-limit to the size of the hash table<br><br>Question4) If there is any tip to improve performance while using policy kit from a mechanism, please let us know.<br><br>Regards,<br><br>Sudha<br>(Software Engineer at Intel.)<br></div></div><br>
</body></html>