Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 15738 invoked from network); 25 Mar 2007 05:27:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2007 05:27:55 -0000 Received: (qmail 11394 invoked by uid 500); 25 Mar 2007 05:28:02 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 11360 invoked by uid 500); 25 Mar 2007 05:28:01 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 11348 invoked by uid 99); 25 Mar 2007 05:28:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2007 22:28:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.138.240.12] (HELO mail.acerenting.com) (216.138.240.12) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2007 22:27:51 -0700 Received: from daniel (CPE0004e2b14a6e-CM0017ee61afdc.cpe.net.cable.rogers.com [74.122.9.143]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.acerenting.com (Postfix) with ESMTP id 62C5A1580044; Sun, 25 Mar 2007 01:28:08 -0400 (EDT) Message-ID: <000b01c76e9f$e7a0d0c0$7802a8c0@dc.bestningning.com> Reply-To: "Daniel Qian" From: "Daniel Qian" To: , References: <072201c76c85$06861850$66d482d8@HP72472929110> <1174759443.5715.11.camel@test.asus> <1174775298.5715.19.camel@test.asus> Subject: Re: load data at server startup - is ap_hook_post_config() theright place? Date: Sun, 25 Mar 2007 00:23:37 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- From: "Joachim Zobel" To: Sent: Saturday, March 24, 2007 5:28 PM Subject: Re: load data at server startup - is ap_hook_post_config() theright place? > Am Samstag, den 24.03.2007, 19:04 +0100 schrieb Joachim Zobel: >> You can of course implement an index tree in memory, too. But why >> reinvent the database if you already have one. > > A hash table (see apr_hash.h) would do. But I don't think its worth the > hassle, you'll also have to put it in shared memory. > > Sincerely, > Joachim > > > > > > The question is where I can create the shared memory in the master server process. Thanks, Daniel