Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 32598 invoked from network); 15 May 2009 07:19:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 May 2009 07:19:20 -0000 Received: (qmail 93972 invoked by uid 500); 15 May 2009 07:19:19 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 93906 invoked by uid 500); 15 May 2009 07:19:19 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 93897 invoked by uid 99); 15 May 2009 07:19:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 07:19:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jfclere@gmail.com designates 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2009 07:19:08 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1271760qwc.48 for ; Fri, 15 May 2009 00:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=0d5IU80cANW7doe6Vkyk56w2CPQtLzKml0QkY11q4vE=; b=IWMO9yd5vvDvQ9X8oIYBUxu2mIWHmvC7odX5rGeIcoAw8jeypTfeC/abX5SapU7kaS eCwYvWSYZ7SbWYHvnBKcyrrj8BTIxigV3ovxbaVk5juilxtnK4fFlBnnhMBZt5c+cMUd Ajo3DOo598WKdtfcuxL9pttTxwMh9LsFuo32g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=GxeUDkj3z/jE/m0C7o3kUHWKlXGuqSO1lNx9f2NPCWfVjW1vno6999hHnvzuJyjwwn pM6IDDsnWVBTFzl4bPqU0/XkQdEoTOp073H7Ivt1or6zRq0vTMRKCblPzQXNPVdGG66C 4diD6C2+itp1jBk5ObQTjaF1jTVTzBP6Ty6i8= Received: by 10.224.29.10 with SMTP id o10mr3611603qac.69.1242371927384; Fri, 15 May 2009 00:18:47 -0700 (PDT) Received: from ?192.168.1.34? ([80.30.166.198]) by mx.google.com with ESMTPS id 5sm1467503qwh.34.2009.05.15.00.18.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 15 May 2009 00:18:45 -0700 (PDT) Message-ID: <4A0D1752.30500@gmail.com> Date: Fri, 15 May 2009 09:18:42 +0200 From: jean-frederic clere User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r774454 - in /httpd/httpd/trunk: include/ap_slotmem.h modules/mem/mod_plainmem.c modules/mem/mod_sharedmem.c server/slotmem.c References: <20090513180411.5E5AA2388874@eris.apache.org> <4A0B1DDF.3000500@gmail.com> <2A566FF6-08D3-465C-9466-1E08C14BF16A@jaguNET.com> <4A0BBB26.30005@gmail.com> <27E68473-3112-4AE3-832B-5736A6A18544@jaguNET.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Jim Jagielski wrote: > > On May 14, 2009, at 10:16 AM, Jim Jagielski wrote: > >> >> On May 14, 2009, at 2:33 AM, jean-frederic clere wrote: >>> Thanks. >>> The idea of ap_slotmem_mem is to provide an address in the shared >>> area that can be used for example like the proxy_worker_stat. Using >>> get/put would require 2 memcpy.... I hate memcpy :) >>> >> >> This is true... Updating would require a memcpy to read in and a memcpy >> to update, whereas having a pointer means we can adjust the slot >> as is (at most, one memcpy). Most slots would need to return APR_ENOTIMPL >> because a concept of a "pointer to a slot" doesn't make sense. >> > > Hmmmm maybe instead of slotmem_mem we call it slotmem_dptr (for > direct-pointer), > to make it clearer?? SQL-based slots, for example, would not have a > dptr and would return APR_ENOTIMPL. > +1. Good names help :-) Cheers Jean-Frederic