Re: [fpc-pascal] AnsiStrings and Memory Management

2006-01-08 Thread Florian Klaempfl
Florian Klaempfl wrote: > I think the fpc code is quite usable now: > > FPC 2.1.1 > Test 1: 100 ... done in 2.265 sec > Test 2: 100 ... done in 1.563 sec > Test 3: 100 ... done in 1.687 sec > > D7: > Test 1: 100 ... done in 2.078 sec > Test 2: 100 ... done in 2.078 sec >

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-17 Thread Florian Klaempfl
I think the fpc code is quite usable now: FPC 2.1.1 Test 1: 100 ... done in 2.265 sec Test 2: 100 ... done in 1.563 sec Test 3: 100 ... done in 1.687 sec D7: Test 1: 100 ... done in 2.078 sec Test 2: 100 ... done in 2.078 sec Test 3: 100 ... done in 2.312 sec Can so

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-16 Thread Peter Vreman
> Peter Vreman wrote: > (astonishing that ShortStrings are slower than AnsiStrings in this example >>> >>>in delphi). >>> >>>Not really. Delphi is silently upcasting your shortstrings to >>> AnsiStrings >>>in >>>the background. You would probably have to recompile the VCL to get >>> around

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Florian Klaempfl
Peter Vreman wrote: >>>(astonishing that ShortStrings are slower than AnsiStrings in this >>>example >> >>in delphi). >> >>Not really. Delphi is silently upcasting your shortstrings to AnsiStrings >>in >>the background. You would probably have to recompile the VCL to get around >>this ;-) > > >

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Adrian Veith
Peter Vreman schrieb: (astonishing that ShortStrings are slower than AnsiStrings in this example in delphi). Not really. Delphi is silently upcasting your shortstrings to AnsiStrings in the background. You would probably have to recompile the VCL to get around this ;-) I've commi

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-15 Thread Adrian Veith
Florian Klaempfl schrieb: Adrian Veith wrote: Hi, two days ago i posted a comment about my experiences porting our database server to fpc. yesterday i tried to figure out where the speed differences between delphi and fpc come from. At the moment i stuck a little bit, because the results i

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-14 Thread Florian Klaempfl
Adrian Veith wrote: > Hi, > > two days ago i posted a comment about my experiences porting our > database server to fpc. yesterday i tried to figure out where the speed > differences between delphi and fpc come from. At the moment i stuck a > little bit, because the results i get don't make any s

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-14 Thread Peter Vreman
> >>(astonishing that ShortStrings are slower than AnsiStrings in this >> example > in delphi). > > Not really. Delphi is silently upcasting your shortstrings to AnsiStrings > in > the background. You would probably have to recompile the VCL to get around > this ;-) I've commited a few small fixe

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-14 Thread Matt Emson
>(astonishing that ShortStrings are slower than AnsiStrings in this example in delphi). Not really. Delphi is silently upcasting your shortstrings to AnsiStrings in the background. You would probably have to recompile the VCL to get around this ;-) Hope that helps, M _