[Notes] [Git][BuildStream/buildstream][bschubert/further-opti] Slotify metaelements



Title: GitLab

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

Commits:

1 changed file:

Changes:

  • buildstream/_loader/metaelement.py
    ... ... @@ -20,6 +20,23 @@
    20 20
     
    
    21 21
     class MetaElement():
    
    22 22
     
    
    23
    +    __slots__ = [
    
    24
    +        "project",
    
    25
    +        "name",
    
    26
    +        "kind",
    
    27
    +        "provenance",
    
    28
    +        "sources",
    
    29
    +        "config",
    
    30
    +        "variables",
    
    31
    +        "environment",
    
    32
    +        "env_nocache",
    
    33
    +        "public",
    
    34
    +        "sandbox",
    
    35
    +        "build_dependencies",
    
    36
    +        "dependencies",
    
    37
    +        "first_pass",
    
    38
    +    ]
    
    39
    +
    
    23 40
         # MetaElement()
    
    24 41
         #
    
    25 42
         # An abstract object holding data suitable for constructing an Element
    



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