Performance : Use std::string when parsing address strings

This commit is contained in:
Magne Sjaastad
2021-09-13 11:37:55 +02:00
parent f89cd51416
commit 9838f766cb
12 changed files with 243 additions and 190 deletions

View File

@@ -365,7 +365,7 @@ bool RifEclipseUserDataKeywordTools::knownKeywordsWithZeroRequiredHeaderLines( c
//--------------------------------------------------------------------------------------------------
void RifEclipseUserDataKeywordTools::extractThreeInts( int* cellI, int* cellJ, int* cellK, const std::string& line )
{
std::vector<std::string> words = RiaStdStringTools::splitStringBySpace( line );
std::vector<std::string> words = RiaStdStringTools::splitString( line, ' ' );
if ( words.size() > 2 )
{
*cellI = RiaStdStringTools::toInt( words[0] );