utils.ResetTempfileModule: Improve performance
authorMichael Hanselmann <hansmi@google.com>
Tue, 10 Jan 2012 14:20:05 +0000 (15:20 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 10 Jan 2012 15:16:32 +0000 (16:16 +0100)
commit380bb53a423a4660f14c81448ef3f19660feac82
tree9d54d82740f2d656d7e32638fad2b9e476c0f38a
parent20875652d1754513b91ddaab850174e96b49d2b3
utils.ResetTempfileModule: Improve performance

This function is called for after every fork (e.g. for handling an RPC
request). With the changes in this patch generating the next random
filename is about 30% faster.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils/wrapper.py