Re: [fpc-pascal] TPersistent overhead

2016-03-27 Thread Ryan Joseph
Good idea thanks. > On Mar 27, 2016, at 5:00 PM, fpc-pascal-requ...@lists.freepascal.org wrote: > > Depending on your needs, you don't need to descend from TPersistent just > to get RTTI information in your classes. Simply wrap a TObject > descendant with {$M+} and deactivate the RTTI after the c

Re: [fpc-pascal] TPersistent overhead

2016-03-27 Thread Michael Van Canneyt
On Sun, 27 Mar 2016, Ryan Joseph wrote: Great, thanks Michael. I had another idea. Is it really required to subclass TPersistent for RTTI information or can I just use {$M+} on the units that I need and leave the class hierarchy the same? Using {$M+} For classes that need RTTI is suffic

Re: [fpc-pascal] TPersistent overhead

2016-03-26 Thread Ryan Joseph
Great, thanks Michael. I had another idea. Is it really required to subclass TPersistent for RTTI information or can I just use {$M+} on the units that I need and leave the class hierarchy the same? > On Mar 26, 2016, at 6:00 PM, fpc-pascal-requ...@lists.freepascal.org wrote: > > On Sat, 26 Ma

Re: [fpc-pascal] TPersistent overhead

2016-03-26 Thread Graeme Geldenhuys
On 2016-03-26 04:45, Ryan Joseph wrote: > unfortunately the way my code is written I need to basically make all > my classes descend from TPersistent, even classes that don’t need > RTTI information. Depending on your needs, you don't need to descend from TPersistent just to get RTTI information i

Re: [fpc-pascal] TPersistent overhead

2016-03-25 Thread Michael Van Canneyt
On Sat, 26 Mar 2016, Ryan Joseph wrote: What are all the performance costs associated with subclassing TPersistent for RTTI information? I want to use this in some classes but unfortunately the way my code is written I need to basically make all my classes descend from TPersistent, even class

[fpc-pascal] TPersistent overhead

2016-03-25 Thread Ryan Joseph
What are all the performance costs associated with subclassing TPersistent for RTTI information? I want to use this in some classes but unfortunately the way my code is written I need to basically make all my classes descend from TPersistent, even classes that don’t need RTTI information. I not