[fpc-pascal] Thread Safety of String

Craig Peterson craig at scootersoftware.com
Wed Jun 4 19:26:45 CEST 2014


On 6/4/2014 12:22 PM, md at rpzdesign.com wrote:
> I like the string handling patterns of freepascal but I want
> the memory stability of a static array of chars
> so I can be used in multi-thread operations without
> a lot a critical section considerations.

Have you actually verified that adding a critical section makes things
noticeably slower?  You're better off starting with something that you
know is correct and optimizing it with questionable changes when you're
sure you need it.

-- 
Craig Peterson
Scooter Software





More information about the fpc-pascal mailing list