Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B33E181CC for ; Sat, 26 Dec 2015 14:03:45 +0000 (UTC) Received: (qmail 68757 invoked by uid 500); 26 Dec 2015 14:03:45 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 68706 invoked by uid 500); 26 Dec 2015 14:03:45 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 68696 invoked by uid 99); 26 Dec 2015 14:03:45 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Dec 2015 14:03:45 +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 D1D76C0185 for ; Sat, 26 Dec 2015 14:03:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.446 X-Spam-Level: X-Spam-Status: No, score=0.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ra_iTrU9jShD for ; Sat, 26 Dec 2015 14:03:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id E121D429D5 for ; Sat, 26 Dec 2015 14:03:43 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5679FE0428 for ; Sat, 26 Dec 2015 14:03:43 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 33D1D3A024F for ; Sat, 26 Dec 2015 14:03:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1721732 - /subversion/trunk/subversion/mod_dav_svn/deadprops.c Date: Sat, 26 Dec 2015 14:03:43 -0000 To: commits@subversion.apache.org From: ivan@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151226140343.33D1D3A024F@svn01-us-west.apache.org> Author: ivan Date: Sat Dec 26 14:03:42 2015 New Revision: 1721732 URL: http://svn.apache.org/viewvc?rev=1721732&view=rev Log: mod_dav_svn: Improve performance and memory usage of PROPFIND with request processing. * subversion/mod_dav_svn/deadprops.c (get_value): Obtain property value from DB->PROPS hash if exists. Modified: subversion/trunk/subversion/mod_dav_svn/deadprops.c Modified: subversion/trunk/subversion/mod_dav_svn/deadprops.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/deadprops.c?rev=1721732&r1=1721731&r2=1721732&view=diff ============================================================================== --- subversion/trunk/subversion/mod_dav_svn/deadprops.c (original) +++ subversion/trunk/subversion/mod_dav_svn/deadprops.c Sat Dec 26 14:03:42 2015 @@ -110,7 +110,12 @@ get_value(dav_db *db, const dav_prop_nam return NULL; } - /* ### if db->props exists, then try in there first */ + /* If db->props exists, then use it to obtain property value. */ + if (db->props) + { + *pvalue = svn_hash_gets(db->props, propname); + return NULL; + } /* We've got three different types of properties (node, txn, and revision), and we've got two different protocol versions to deal