[Lazarus] Threads in Lazarus code base
Luiz Americo Pereira Camara
luizmed at oi.com.br
Wed Sep 15 16:49:42 CEST 2010
Mattias Gaertner escreveu:
> *many IDE parts will become slower (once you start a thread the RTL
> uses critical sections and especially string handling become much
If i understand correctly all program will suffer the performance hit,
not only the "threaded" part, right?
Do you have an idea of how slower string handling would be?
I'm asking this because i'm planning to make a client of a REST service
through http and i choose Synapse to do the communication.
Since Synapse recommends to use thread to avoid GUI freeze, i planned to
use a thread for getting the data.
At the other side this REST server uses JSON as the data format.
If the thread really affects badly the string handling (and parsing JSON
does a lot of it) i would rethink the strategy and go for an event
based http client like lnet.
More information about the Lazarus