47a693d schema: Speed up schema cache

1 file Authored by dkupka 7 years ago, Committed by jcholast 7 years ago,
    schema: Speed up schema cache
    
    Check presence of schema in cache (and download it if necessary) on
    __init__ instead of with each __getitem__ call. Prefill internal
    dictionary with empty record for each command to be able to quickly
    determine if requested command exist in schema or not. Rest of schema
    data are read from cache on first attempt to retrive them.
    
    https://fedorahosted.org/freeipa/ticket/6048
    https://fedorahosted.org/freeipa/ticket/6069
    
    Reviewed-By: Jan Cholasta <jcholast@redhat.com>
    
        
file modified
+177 -124