diff options
author | Vas Crabb <vas@vastheman.com> | 2020-09-28 18:01:02 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-09-28 18:01:02 +1000 |
commit | 5d32cad8cab4bb50ed6b1942f24d3e4a7257b66f (patch) | |
tree | cfce230830aacd6431589e9e7e9009fb2207e68f /src/emu/device.h | |
parent | e706c64e28e152d2c5f09643d99ed8de1b483b3e (diff) |
Don't clear memory before constructing devices, with the exception of drivers for now.
This substantially reduces the overhead of running -validate, -romident,
etc. and brings us a little closer to not needing to disable lifetime
dead store elimination optimisations. There are likely to be some
issues that weren't fixed while this was still on a branch, so everyone
be alert.
Diffstat (limited to 'src/emu/device.h')
-rw-r--r-- | src/emu/device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/device.h b/src/emu/device.h index 55c3641f678..53534fe60d5 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -205,7 +205,7 @@ private: template <typename DeviceClass> static std::unique_ptr<device_t> create_device(device_type_impl_base const &type, machine_config const &mconfig, char const *tag, device_t *owner, u32 clock) { - return make_unique_clear<DeviceClass>(mconfig, tag, owner, clock); + return std::make_unique<DeviceClass>(mconfig, tag, owner, clock); } template <typename DriverClass> @@ -298,7 +298,7 @@ public: template <typename... Params> std::unique_ptr<DeviceClass> create(machine_config &mconfig, char const *tag, device_t *owner, Params &&... args) const { - return make_unique_clear<DeviceClass>(mconfig, tag, owner, std::forward<Params>(args)...); + return std::make_unique<DeviceClass>(mconfig, tag, owner, std::forward<Params>(args)...); } template <typename... Params> DeviceClass &operator()(machine_config &mconfig, char const *tag, Params &&... args) const; |