[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 8/8] target-i386/kvm: cache the return value
From: |
Radim Krčmář |
Subject: |
Re: [Qemu-devel] [PATCH v3 8/8] target-i386/kvm: cache the return value of kvm_enable_x2apic() |
Date: |
Tue, 4 Oct 2016 15:45:34 +0200 |
2016-10-04 13:33+0200, Igor Mammedov:
> On Fri, 30 Sep 2016 18:10:13 +0200
> Radim Krčmář <address@hidden> 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.