Skip to content
Snippets Groups Projects
  • Nils Erik Krumnack's avatar
    bc6477a1
    allow switching component creation from dictionaries to factory functions · bc6477a1
    Nils Erik Krumnack authored
    The basic idea here is that dictionaries are fairly heavy when used as a factory.  Registering factory functions instead makes the jobs a lot lighter.
    For the CP algorithm test job (on data) the savings are:
    
    ~600 MB in memory
    ~22s in startup time
    one major root dependency eliminated
    
    The first draft also included a function for preloading all the dictionaries.  I removed
    it to allow the user to define their own.
    bc6477a1
    History
    allow switching component creation from dictionaries to factory functions
    Nils Erik Krumnack authored
    The basic idea here is that dictionaries are fairly heavy when used as a factory.  Registering factory functions instead makes the jobs a lot lighter.
    For the CP algorithm test job (on data) the savings are:
    
    ~600 MB in memory
    ~22s in startup time
    one major root dependency eliminated
    
    The first draft also included a function for preloading all the dictionaries.  I removed
    it to allow the user to define their own.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.