PIString optimization

This commit is contained in:
Andrey
2022-04-26 17:19:05 +03:00
parent 4bc12989ca
commit 7ad520a1c3
2 changed files with 17 additions and 11 deletions

View File

@@ -130,7 +130,13 @@ int main(int argc, char * argv[]) {
}
piCout << l << "PIString::fromNumber" << tm.elapsed_m();
tm.reset();
for(int i=0; i<cc; ++i) {
PIString s = is;
l = s.size();
}
piCout << l << "PIString::assign empty" << tm.elapsed_m();
PIString is2 = PIString::fromUTF8(ba);
tm.reset();
for(int i=0; i<cc; ++i) {
PIString s = is;
l = s.size();