[fpc-pascal] Traits Proposal

Ryan Joseph genericptr at gmail.com
Tue Feb 16 19:58:17 CET 2021



> On Feb 16, 2021, at 11:48 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> 
> If you need to create 1000 class instances each frame then you have a flaw in your logic in my opinion. 
> 

You can reuse classes and reset fields but getting a new piece of memory could be faster. These things do happen and adding on class allocation performance penalties could be a problem. I need to profile first to know what we're talking about here.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list