[Notes] [Git][BuildStream/buildstream][bschubert/further-opti] fixup! Use sets



Title: GitLab

Benjamin Schubert pushed to branch bschubert/further-opti at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_loader/loader.py
    ... ... @@ -301,10 +301,10 @@ class Loader():
    301 301
                 sequence = []
    
    302 302
     
    
    303 303
             # Skip already validated branches
    
    304
    -        if validated.get(element) is not None:
    
    304
    +        if element in validated:
    
    305 305
                 return
    
    306 306
     
    
    307
    -        if check_elements.get(element) is not None:
    
    307
    +        if element in check_elements:
    
    308 308
                 # Create `chain`, the loop of element dependencies from this
    
    309 309
                 # element back to itself, by trimming everything before this
    
    310 310
                 # element from the sequence under consideration.
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]