3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Assorted microoptimization speedups in core data structures.

This commit is contained in:
Marcelina Kościelnicka 2022-07-27 16:15:11 +02:00
parent 6ba48515b5
commit a681904237
6 changed files with 118 additions and 194 deletions

View file

@ -627,7 +627,7 @@ const char *log_const(const RTLIL::Const &value, bool autoint)
}
}
const char *log_id(RTLIL::IdString str)
const char *log_id(const RTLIL::IdString &str)
{
log_id_cache.push_back(strdup(str.c_str()));
const char *p = log_id_cache.back();