[fpc-pascal] Re: Registers in loops

2012-12-13 Thread leledumbo
Maybe we don't have such optimization yet? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Registers-in-loops-tp5712245p5712249.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pasc

Re: [fpc-pascal] Which comparisons are faster?

2012-12-13 Thread Krzysztof
Thank you very much :) 2012/12/13 Mattias Gaertner > On Thu, 13 Dec 2012 22:32:06 +0100 > Krzysztof wrote: > > > Hi, > > > > I know that in normal cases those things has no matters, but I do much > > things in OnPaint so each millisecond is matter. For example, strings > > comparisons: > > > >

Re: [fpc-pascal] Which comparisons are faster?

2012-12-13 Thread Mattias Gaertner
On Thu, 13 Dec 2012 22:32:06 +0100 Krzysztof wrote: > Hi, > > I know that in normal cases those things has no matters, but I do much > things in OnPaint so each millisecond is matter. For example, strings > comparisons: > > What is faster if string is "big": > > if s<>'' then > > or: > >

[fpc-pascal] Which comparisons are faster?

2012-12-13 Thread Krzysztof
Hi, I know that in normal cases those things has no matters, but I do much things in OnPaint so each millisecond is matter. For example, strings comparisons: What is faster if string is "big": if s<>'' then or: if Length(s)>0 then... Same thing with incrementations: i := i + 1 or: Inc

[fpc-pascal] Registers in loops

2012-12-13 Thread denisgolovan
Hi all Recently I discovered that fpc refuses to use registers in my loops even with optimization turned on (-O1,-O3 used). I tested using both Linux x86 and Windows x64 version. The results are basically the same. The compiler just uses stack variables. I've also included naive asm version of

[fpc-pascal] DB test framework GUI: added database selector

2012-12-13 Thread Reinier Olislagers
Hi all, Could you have a look at 23483: [Patch] Add database.ini selection/edit form to dbtestframework_gui ... I've added a database.ini connector selector/editor form that may be handy to quickly select a database to be edited. However, I'm not sure this is the best way of using it - it curren

[fpc-pascal] Re: Problem running make distclean Win x86 trunk

2012-12-13 Thread Reinier Olislagers
On 11-12-2012 17:35, Jonas Maebe wrote: > > On 11 Dec 2012, at 17:29, Reinier Olislagers wrote: > >> Anybody else see this problem with fpc trunk? >> >> Windows x86 fpc; using fpcup tried to compile with -gh -gl -O- -OoNO >> >> Part of the output at >> http://pastebin.ca/2291475 > > What exactly

[fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-13 Thread John
Hi, Short version: A call to TSQLConnection.GetTableNames returns a list of tables on all schemas/owners, without the owner. Unless you are using a simple database with only one owner and are logging in as the owner, this is fairly unhelpful. Environment: FPC Fixes 2.6 , Lazarus trunk, bot