This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5184] strftime stats /etc/localtime too much
- From: "mann at vmware dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Aug 2008 00:27:45 -0000
- Subject: [Bug libc/5184] strftime stats /etc/localtime too much
- References: <20071016022504.5184.adi@hexapodia.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mann at vmware dot com 2008-08-13 00:27 -------
Sorry, I'm on drugs... My sample program causes /etc/localtime to be opened and
read only once, but stat'ed 10 times. The stat isn't so bad, but still costs
something that users may need to be aware of.
Also, it looks like bug 5186 is saying that localtime should also be stat'ing
/etc/localtime every time.
If that's where things are going, I guess it's just another performance trap to
be wary of, and we can avoid it by setting TZ if we're OK with our programs not
dynamically tracking changes to /etc/localtime.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5184
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.