From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mail.openembedded.org (Postfix) with ESMTP id A82C16BF0E for ; Wed, 11 Sep 2013 17:00:23 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r8BHE209011872; Wed, 11 Sep 2013 18:14:02 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qLI2RDjMqCHx; Wed, 11 Sep 2013 18:14:02 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r8BHDsQL011859 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 11 Sep 2013 18:13:56 +0100 Message-ID: <1378918805.3484.201.camel@ted> From: Richard Purdie To: Denys Dmytriyenko Date: Wed, 11 Sep 2013 18:00:05 +0100 In-Reply-To: <1378830807-24027-2-git-send-email-denis@denix.org> References: <1378830807-24027-1-git-send-email-denis@denix.org> <1378830807-24027-2-git-send-email-denis@denix.org> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: bitbake-devel@lists.openembedded.org Subject: Re: [1.18][PATCH] methodpool: Retire it, remove global method scope X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 17:00:24 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2013-09-10 at 12:33 -0400, Denys Dmytriyenko wrote: > From: Richard Purdie > > Having a global method scope confuses users and with the introduction > of parallel parsing, its not even possible to correctly detect conflicting > functions. Rather than try and fix that, its simpler to retire the global > method scope and restrict functions to those locations they're defined > within. This is more what users actually expect too. > > If we remove the global function scope, the need for methodpool is reduced > to the point we may as well retire it. There is some small loss of caching > of parsed functions but timing measurements so the impact to be neglibile > in the overall parsing time. > > Signed-off-by: Richard Purdie > Tested-by: Denys Dmytriyenko In general I wouldn't take this (as a feature removal) however the code in question was really broken when we introduced parallel parsing. Its therefore totally broken, has been for a long time and this patch is therefore a good thing as it is a bugfix rather than feature removal. So I've merged it. Cheers, Richard