4 ms·
The enum to tell what shape an object is costs something, probably 4 bytes. Storing the 8 byte vtable constant isn't so bad considering.
by muricula 4y ago
The enum to tell what shape an object is costs something, probably 4 bytes.
Storing the 8 byte vtable constant isn't so bad considering.
- adamrezich 4y agolooking at a value is faster than dereferencing a pointer—why is this controversial?