This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5184] strftime stats /etc/localtime too much


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]