Date: Sat, 24 Jan 2026 22:58:58 +0000
On Sat, Jan 24, 2026 at 9:23 PM Jason McKesson wrote:
>
> Sprites are not images; they *use* images.
Yeah you're right I've never worked on 3D computer graphics and I'm
not even really sure what a Sprite is.
The sample class I gave was just an example of a class that has much
more data than metadata. A better example might have been a class that
contains several 512-byte RSA key pairs.
Anyway my argument still stands: The 'memcpy' optimisation for
copy-construction should be usable for polymorphic types (so long as
A: the class is final, or B: we're guaranteed to be dealing with the
most-derived object).
>
> Sprites are not images; they *use* images.
Yeah you're right I've never worked on 3D computer graphics and I'm
not even really sure what a Sprite is.
The sample class I gave was just an example of a class that has much
more data than metadata. A better example might have been a class that
contains several 512-byte RSA key pairs.
Anyway my argument still stands: The 'memcpy' optimisation for
copy-construction should be usable for polymorphic types (so long as
A: the class is final, or B: we're guaranteed to be dealing with the
most-derived object).
Received on 2026-01-24 22:58:02
