Ignore:
Timestamp:
06/07/18 17:42:49 (6 years ago)
Author:
Maciej Komosinski
Message:

Performance improvements, including avoiding unnecessary passing of objects by value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fH/fH_oper.cpp

    r797 r803  
    255255                fH_Handle *handle = NULL;
    256256                method = FH_OPCOUNT + roulette(addoperations, FH_ADD_OPCOUNT);
     257                if (getActiveNeuroClassCount() == 0) method = FH_OPCOUNT + FH_ADD_STICK;
    257258                switch (method - FH_OPCOUNT)
    258259                {
     
    466467        {
    467468                nc = getRandomNeuroClass();
    468                 if (!nc) nc = Neuro::getClass("N");
     469                // checking of neuron class availability should be checked before
    469470        }
    470471
Note: See TracChangeset for help on using the changeset viewer.