From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQ2Q-0004Iu-UH for qemu-devel@nongnu.org; Tue, 04 Oct 2016 09:45:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brQ2N-0004qD-0a for qemu-devel@nongnu.org; Tue, 04 Oct 2016 09:45:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brQ2M-0004pb-OR for qemu-devel@nongnu.org; Tue, 04 Oct 2016 09:45:38 -0400 Date: Tue, 4 Oct 2016 15:45:34 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Message-ID: <20161004134534.GA23179@potion> References: <20160930161013.9832-1-rkrcmar@redhat.com> <20160930161013.9832-9-rkrcmar@redhat.com> <20161004133315.4e353b0c@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161004133315.4e353b0c@nial.brq.redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 8/8] target-i386/kvm: cache the return value of kvm_enable_x2apic() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, Peter Xu , Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Michael S. Tsirkin" 2016-10-04 13:33+0200, Igor Mammedov: > On Fri, 30 Sep 2016 18:10:13 +0200 > Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: >> Assume that KVM would have returned the same on subsequent runs. >> Abstract the memoizaiton pattern into macros. > s/memoi/memori/i > Throughout whole patch The pattern I wanted to describe is known as "memoization" without r, due to reasons, https://en.wikipedia.org/wiki/Memoization, but I was expecting the whole idea to be nacked, so the naming didn't get much thought. :) I'll change it memorize, to create less confusion. (Memoizing a non-pure "function" is hacky anyway.) Thanks.