performance improvement - ~AssertionHandler, getConfig return value

inlined ~AssertionHandler(), and changed getConfig to return
shared_ptr const reference instead of by value (very expensive for
shared_ptr's).

Further work on #1086.

Brings test from 0m20.635s to 0m17.186s
This commit is contained in:
Neal Coombes
2017-11-20 09:11:30 -06:00
parent 7732835f9a
commit f7b3cb515b
4 changed files with 11 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ namespace Catch {
return m_runner;
}
virtual IConfigPtr getConfig() const override {
virtual IConfigPtr const & getConfig() const override {
return m_config;
}