On Wed, Sep 21, 2011 at 03:02:48PM -0700, Tim Pepper wrote: > Is the original optimization really needed? If not you avoid the whole > problem...no static, no TLS, no fd left open. > I wonder who would whinge on performance if the open/close simply > happened everytime? Ie: remove initial state_fd=-2 and its associated > special casing. There are programs out there that generate literally tens of thousands of UUID's per second. One example of such a program filed high priority bugs with both RHEL and SLES because it wasn't fast enough and the uuid library was slowing down the setup time of an commercially important Enterprise Resource Planning product by hours. The reason why I implemented uuidd was specifically to help out this product and this company. Partially because it was economically important to Red Hat, SLES, and IBM (who was my employer at the time), and partially because I had a soft spot for this company, to which I had helped add Kerberos authentication and was very supportive of Linux in the mid 1990's, before Linux had been discovered by big business. But yeah, there are people and companies who really care about libuuid's performance. - Ted -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html