Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Sat, 11 Jun 2005, schreef Christian Iversen: On Friday 10 June 2005 17:16, Joost van der Sluis wrote: Hi all, I don't know if rtl-optimilisation patches have a large priority, but nevertheless this patch improves the speed of the sysutils.uppercase and lowercase functions. A

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Fri, 10 Jun 2005, schreef Florian Klaempfl: Joost van der Sluis wrote: Hi all, I don't know if rtl-optimilisation patches have a large priority, It depends if someone does it ;) but nevertheless this patch improves the speed of the sysutils.uppercase and lowercase functions.

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Sat, 11 Jun 2005, schreef Michael Van Canneyt: On Sat, 11 Jun 2005, Daniël Mantione wrote: Op Fri, 10 Jun 2005, schreef Florian Klaempfl: Joost van der Sluis wrote: Hi all, I don't know if rtl-optimilisation patches have a large priority, It depends if

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Sat, 11 Jun 2005, schreef Daniël Mantione: So, judge for yourself. I think this is worth the 256 byte lookup table. ? 0.948/0.999 = 95 % So, we 5% speed improvement from using a table; this is much worse than I thought and can easily be undone in real world by the increased cache

[fpc-devel] Patch for fpreadpnm

2005-06-11 Thread Colin Western
The attach fixes two problems I found reading pnm files: - RGB files were not being read correctly - byte values of 255 were overflowing. I have adjusted the colour scaling to be compatible with what happens for .BMP files. I have not been able to do much testing, as I am short of files to

Re: [fpc-devel] Patch for fpreadpnm

2005-06-11 Thread Michael Van Canneyt
On Sat, 11 Jun 2005, Colin Western wrote: The attach fixes two problems I found reading pnm files: - RGB files were not being read correctly - byte values of 255 were overflowing. I have adjusted the colour scaling to be compatible with what happens for .BMP files. I have not been able to

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Michael Van Canneyt
On Sat, 11 Jun 2005, Joost van der Sluis wrote: If we're gonna hold a discussion like this for every optimilisation, it isn't worth the effort imho. But now we're busy with it: Well. Discussion is nice, but what does the real world show ? To compare, I made 6 versions of Lowercase:

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Sat, 11 Jun 2005, schreef Michael Van Canneyt: On Sat, 11 Jun 2005, Joost van der Sluis wrote: If we're gonna hold a discussion like this for every optimilisation, it isn't worth the effort imho. But now we're busy with it: Well. Discussion is nice, but what does the real world

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Michael Van Canneyt
On Sat, 11 Jun 2005, Danil Mantione wrote: Op Sat, 11 Jun 2005, schreef Michael Van Canneyt: On Sat, 11 Jun 2005, Joost van der Sluis wrote: If we're gonna hold a discussion like this for every optimilisation, it isn't worth the effort imho. But now we're busy with it:

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Daniël Mantione
Op Sat, 11 Jun 2005, schreef Michael Van Canneyt: I'm not contesting that; but here I think that the use of pascal is more important, for porting's sake. As long as the Pascal version remains available (for exactly the those portability reasons), I am not against it. Instead, I hope someone

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread David Butler
On Sat, 11 Jun 2005 13:33:57 +0200 (CEST), you wrote: To compare, I made 6 versions of Lowercase: Result on an AMD 64 3000: Lowercase time to execute: 00:00:01.563 Lowercase2 Time to execute: 00:00:01.363 Lowercase3 Time to execute: 00:00:01.394 Lowercase4 Time to execute: 00:00:00.999

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Michael Van Canneyt
On Sat, 11 Jun 2005, Danil Mantione wrote: Op Sat, 11 Jun 2005, schreef Michael Van Canneyt: That is why I use pchar and one uniquestring; It prevents all these automated uniquestring calls. Isn't it a better idea to build a new string, i.e. we setlength result and copy

Re: [fpc-devel] Fast ascii upper/lowercase

2005-06-11 Thread Christian Iversen
On Saturday 11 June 2005 20:38, Daniël Mantione wrote: Op Sat, 11 Jun 2005, schreef Christian Iversen: With all the discussion about speed of lowercase/uppercase recently, I thought I'd chip in. I don't have the time to actually implement and test this, but I hope somebody else will.

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread Martin Schreiber
Some more test results with PII 350MHz and two additional implementations with lookup table: Kylix: lowercase execution time: 336887 lowercase 1 execution time: 380923 lowercase 2 execution time: 375411 lowercase 3 execution time: 369814 lowercase 4 execution time: 320665 lowercase 5 execution

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread L505
Where do I find the cpu/cpu-timer unit guys... Directory? Download link? Thank you. | | On 12 Jun 2005, at 00:12, Martin Schreiber wrote: | | Some more test results with PII 350MHz and | two additional implementations with lookup table: | | Try also with register variables on (-O???r), it

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread L505
| Where do I find the cpu/cpu-timer unit guys... | Directory? Download link? | | Thank you. | Is this the one? ;-) http://members.yline.com/~tom_at_work/ | | | | | On 12 Jun 2005, at 00:12, Martin Schreiber wrote: | | | | Some more test results with PII 350MHz and | | two additional

Re: [fpc-devel] Patch to speed up Uppercase/Lowercase functions

2005-06-11 Thread L505
http://dennishomepage.gugs-cats.dk/LowerCaseChallenge.htm LowerCaseShaPas2_c This one here is in Pascal, using GOTO and LABEL which consistently work fast on both -Og and -OG But no one wants to maintain a GOTO and a LABEL.. [LowerCaseShaPas2_c] was slightly slower than [lowercase 6 ] (second