mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Use single-character version of string find() (performance-faster-string-find)
This commit is contained in:
parent
95d2af4501
commit
c32566420a
8 changed files with 10 additions and 10 deletions
|
@ -210,7 +210,7 @@ Value* SQLite::EntryToVal(sqlite3_stmt *st, const threading::Field *field, int p
|
|||
{
|
||||
const char *text = (const char*) sqlite3_column_text(st, pos);
|
||||
string s(text, sqlite3_column_bytes(st, pos));
|
||||
int pos = s.find("/");
|
||||
int pos = s.find('/');
|
||||
int width = atoi(s.substr(pos+1).c_str());
|
||||
string addr = s.substr(0, pos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue