From: Keir Fraser Subject: Re: [PATCH 7/7] introduce write-once optimization Date: Tue, 22 Sep 2009 09:27:02 +0100 Message-ID: References: <4AB789C30200007800015F50@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4AB789C30200007800015F50@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/09/2009 13:12, "Jan Beulich" wrote: > This one is likely the most questionable part: Realizing that the > compiler can do a much better job in terms of CSE when the variables > needed are constant, this introduces and extension to the read-mostly > variables, allowing variables to be marked as being written just > during boot initialization. How much of a win overall was this? The main concern comes from mixing the two aliased variables within a single linkage unit, where it will be hard to know how clever the compiler might be with inlining and inter-function optimisations. -- Keir