mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-19 11:25:38 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user