mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 02:00:04 -04:00
Add "final" marker to a number of classes
Devirtualization is an optimization in the generated assembly: when a class C is polymorphic but also final, ``((C *)ptr)->func()`` can be turned from an indirect into a static call.
This commit is contained in:
@@ -23,7 +23,7 @@ using namespace AudioDecoder;
|
||||
|
||||
namespace {
|
||||
|
||||
class InternalAudioDecoder : public IAudioDecoder {
|
||||
class InternalAudioDecoder final : public IAudioDecoder {
|
||||
public:
|
||||
InternalAudioDecoder(ReadDataFunction readerFunction, void *pReaderData);
|
||||
~InternalAudioDecoder();
|
||||
|
||||
Reference in New Issue
Block a user