From owner-freebsd-isp Tue Dec 12 9:29:36 2000 From owner-freebsd-isp@FreeBSD.ORG Tue Dec 12 09:29:35 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 0169137B400 for ; Tue, 12 Dec 2000 09:29:34 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id TAA12026; Tue, 12 Dec 2000 19:35:06 +0100 Message-ID: <3A3660BC.1030105@i-clue.de> Date: Tue, 12 Dec 2000 18:30:36 +0100 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001211 X-Accept-Language: en MIME-Version: 1.0 To: Mike , isp@freebsd.org Subject: Re: OT: gdbm References: <4.3.2.7.2.20001206025552.02e79f98@mail.futuredesigns.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike wrote: > Quick off topic question: > Would it be better/faster to pull configuration for a C or PHP cgi > from a text file, or GDBM db? The program will be accessed over > 200,000/day, so speed and reliability is a concern. Depends. If you have to start up gdbm and all its libs each time you access the data, and the configuration data is small, a text file would be faster. If you configuration data is lagre or you need complicated selection algorithms, gdbm may gain speed against simnply reading and sorting through a text file. In both cases, if there is enough memory, the OS will keep the files in RAM. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message