Skip to content

Commit

Permalink
Remove the use of ignore_preset_value as it's a huge performance drai…
Browse files Browse the repository at this point in the history
…n, with no benefit here

Signed-off-by: Mark Burton <[email protected]>
  • Loading branch information
markfoodyburton authored and tmarcero committed Apr 9, 2024
1 parent 9927c70 commit a77ea38
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions report/src/report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,7 @@ sc_core::sc_verbosity cci_lookup(cci::cci_broker_handle broker,
auto val = broker.get_preset_cci_value(param_name);

if (val.is_int()) {
broker.ignore_unconsumed_preset_values(
[param_name](const std::pair<std::string, cci::cci_value>& iv)
-> bool { return iv.first == param_name; });
broker.lock_preset_value(param_name);

return verbosity.at(
std::min<unsigned>(val.get_int(), verbosity.size() - 1));
}
Expand Down

0 comments on commit a77ea38

Please sign in to comment.