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

@@ -25,7 +25,7 @@ namespace Catch {
virtual IResultCapture* getResultCapture() = 0;
virtual IRunner* getRunner() = 0;
virtual IConfigPtr getConfig() const = 0;
virtual IConfigPtr const & getConfig() const = 0;
};
struct IMutableContext : IContext