Changeset 973 for cpp/frams/genetics/fS
- Timestamp:
- 07/03/20 00:37:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fS/fS_general.cpp
r969 r973 99 99 if (separatorIndex == -1) 100 100 { 101 keyLength = keyValue.len ();101 keyLength = keyValue.length(); 102 102 value = DEFAULT_NEURO_CONNECTION_WEIGHT; 103 103 } else 104 104 { 105 105 keyLength = separatorIndex; 106 size_t valueLength = keyValue.len () - (separatorIndex);106 size_t valueLength = keyValue.length() - (separatorIndex); 107 107 value = fS_stod(buffer + separatorIndex + 1, start, &valueLength); 108 108 } … … 859 859 { 860 860 SString geno; 861 geno. memoryHint(100); // Provide a small buffer from the start to improve performance861 geno.reserve(100); // Provide a small buffer from the start to improve performance 862 862 startNode->getGeno(geno); 863 863 return geno;
Note: See TracChangeset
for help on using the changeset viewer.