From owner-freebsd-hackers Tue Apr 29 23:36:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA09376 for hackers-outgoing; Tue, 29 Apr 1997 23:36:38 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA09370 for ; Tue, 29 Apr 1997 23:36:37 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id XAA02129 for ; Tue, 29 Apr 1997 23:36:34 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA07134 for hackers@freebsd.com; Wed, 30 Apr 1997 08:36:33 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id IAA02923; Wed, 30 Apr 1997 08:05:49 +0200 (MET DST) Message-ID: <19970430080548.LR07541@uriah.heep.sax.de> Date: Wed, 30 Apr 1997 08:05:48 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.com Subject: Re: Syslog bug? (1 solved) References: <3.0.32.19970429152852.00b0f7cc@mixcom.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <3.0.32.19970429152852.00b0f7cc@mixcom.com>; from Jeffrey J. Mountin on Apr 29, 1997 15:28:53 -0500 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jeffrey J. Mountin wrote: > On the curious side I wonder if any date related calls access the files in > /usr/share/zoneinfo *every* time a program makes a call or is this info > cached? The way the code looks it is not. This means that a small amount > of work (disk IO) is done for each program and each call, if there are > several, and could be considered inefficient, especially when one considers > how many times syslog() is used. Or is there a reason for this? I think they are only loaded once when being used first. Even if not, remember that there's a disk cache. Things that are frequently used are likely to be in the cache. The zoneinfo files certainly belong into this category. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)