[fpc-pascal] Passing around Pascal strings vs AnsiString
genericptr at gmail.com
Wed Jun 14 15:20:50 CEST 2023
I was curious, if you had a Pascal (short) string and it was going to be passed around often would that be slower than using an AnsiString since its size is that of a pointer? I always prefer short strings when I know the length will be less than 255 but can copying that value between function calls add up to be more than the cost of allocating and reference counting the AnsiString?
More information about the fpc-pascal