Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Michael Schnell
On 11/10/2014 06:47 PM, Karoly Balogh (Charlie/SGR) wrote: Maybe we abuse the the heap manager, As normal Strings reside on the heap and are automatically created and destroyed, maybe (as I was told lately) Short Strings are more efficient. -Michael

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Jonas Maebe
On 10/11/14 18:47, Karoly Balogh (Charlie/SGR) wrote: > We were profiling our code, and one RTL function regularly popped up in > close to the top in the profiling list. > > It's remove_freed_fixed_chunks(). Can someone explain to me under what > condition this code is triggered very often and/or

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Adriaan van Os
Jonas Maebe wrote: On 10/11/14 18:47, Karoly Balogh (Charlie/SGR) wrote: We were profiling our code, and one RTL function regularly popped up in close to the top in the profiling list. It's remove_freed_fixed_chunks(). Can someone explain to me under what condition this code is triggered very o

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Jonas Maebe
On 11/11/14 10:28, Adriaan van Os wrote: > Jonas Maebe wrote: >> On 10/11/14 18:47, Karoly Balogh (Charlie/SGR) wrote: >>> It's remove_freed_fixed_chunks(). Can someone explain to me under what >>> condition this code is triggered very often and/or could take long to >>> execute (there's a loop in

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Sergei Gorelkin
11.11.2014 12:35, Jonas Maebe пишет: On 11/11/14 10:28, Adriaan van Os wrote: Jonas Maebe wrote: On 10/11/14 18:47, Karoly Balogh (Charlie/SGR) wrote: It's remove_freed_fixed_chunks(). Can someone explain to me under what condition this code is triggered very often and/or could take long to ex

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Michael Van Canneyt
On Tue, 11 Nov 2014, Sergei Gorelkin wrote: 11.11.2014 12:35, Jonas Maebe пишет: On 11/11/14 10:28, Adriaan van Os wrote: Jonas Maebe wrote: On 10/11/14 18:47, Karoly Balogh (Charlie/SGR) wrote: It's remove_freed_fixed_chunks(). Can someone explain to me under what condition this code is t