Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CAC018FE2 for ; Fri, 20 Nov 2015 19:00:31 +0000 (UTC) Received: (qmail 56088 invoked by uid 500); 20 Nov 2015 19:00:30 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 55991 invoked by uid 500); 20 Nov 2015 19:00:30 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 55978 invoked by uid 99); 20 Nov 2015 19:00:30 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Nov 2015 19:00:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7820EC05AC for ; Fri, 20 Nov 2015 19:00:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Kgj08lPoX6hK for ; Fri, 20 Nov 2015 19:00:21 +0000 (UTC) Received: from resqmta-ch2-10v.sys.comcast.net (resqmta-ch2-10v.sys.comcast.net [69.252.207.42]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 88C8721247 for ; Fri, 20 Nov 2015 19:00:20 +0000 (UTC) Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-10v.sys.comcast.net with comcast id juyz1r0032Udklx01v0Cux; Fri, 20 Nov 2015 19:00:12 +0000 Received: from [192.168.199.10] ([69.251.84.114]) by resomta-ch2-18v.sys.comcast.net with comcast id jv0C1r0032U0RYt01v0CWU; Fri, 20 Nov 2015 19:00:12 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Optimization, modern C and APR 2.0 onwards From: Jim Jagielski In-Reply-To: Date: Fri, 20 Nov 2015 14:00:11 -0500 Content-Transfer-Encoding: 7bit Message-Id: References: To: APR Developer List X-Mailer: Apple Mail (2.2104) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1448046012; bh=MaGZusPG0JXa1KQu/N9TRfKfFYQb9Tj7MVyDKvtczIE=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=nfm3WZ0fmY6+lLy7RYAuUrf+n8AVTJL9aozVycHOb/GmsNw2mdO58NA+uFoW1IRiT huSKWHHh18GraC1HzWzgJnWW96LXX6Pq+Y/R0vIBl8ejRKfv/Oeo3412gFnpStGRbp O6ec9NPY+VlkRKky0i8+qRqNJcJLcZUtn5CK9fvk3J7dlaA7Ii3TLeT/IWfkrD5Na3 QjKH4KJhbhFXJGguHzgCd5QiZ2+FzTKSMa4IsTwgAvBdxGMyQznb+PzTVNnGVTLSp9 goV4U40f2M+H7vaKhz5Tw903/lajzdlfhzE8IWoL7d7CpJAK/213AvoLdKMFTH4t6n hFEGtZu5OQJwA== If we are serious about having a serious update to APR, I would recommend that we use more up-to-date data structures, patterns and algorithms than those in apr1. For example, Greg's pocore mini lib is an example of the types of improvements we should consider. > On Nov 20, 2015, at 1:31 PM, William A Rowe Jr wrote: > > I'm wondering how the group would react to refactoring some of APR 2.0 > to either offer inline code for many of our heavily consumed functions, > or offering inline + fn implementations alongside one another? > > Would it still be necessary in this day and age to support C compilers > that do not support inline at all, e.g. hide the inline declarations based > on some macro switch leaving only the function stub? > > We can obviously debate the merits of which functions are most > prime for optimization, including how mature each is (due to the > fact that the user will be 'stuck' with the implementation until they > recompile their own code against a new release of apr in the event > of a bug or security fix). > > Thoughts? > > Bill