[fpc-pascal] FPC_PCHAR_LENGTH dog slow

Ryan Joseph ryan at thealchemistguild.com
Tue Jul 3 17:15:16 CEST 2018


I was just parsing something and found that a call to length on a pchar was taking 90+% of the time in FPC_PCHAR_LENGTH.

Why is that so crazy slow? Does it need to iterate the entire length of the string to know it’s length?

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list