[Freeipa-devel] [PATCH] 1 Do lazy initializiation ipalib
Jan Cholasta
jcholast at redhat.com
Mon Oct 31 15:03:04 UTC 2011
Dne 31.10.2011 13:19, Alexander Bokovoy napsal(a):
> On Mon, 31 Oct 2011, Jan Cholasta wrote:
>> Added finalization for __call__ and the check for CLI. Patch attached.
> ACK from my side but see below.
>
>> + def __getattribute__(self, name):
>> + if not name.startswith('_Plugin__') and not name.startswith('_ReadOnly__') and name != 'finalize_late':
>> + self.finalize_late()
>> + return object.__getattribute__(self, name)
> Could you get faster than three string comparisons? As
> __getattribute__ is fairly often called it would make sense to keep
> these operations to absolute minimum.
>
Is there any noticable slowdown?
Honza
--
Jan Cholasta
More information about the Freeipa-devel
mailing list