Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-21 Thread Henrik Sperre Johansen
Btw, if you want to optimize for shorter-encodings, couldn't you do asm cmp: asm EAX with: 16r80; jl: oneByte; cmp: asm EAX with: 16r800; jl: twoBytes; cmp: asm EAX with:16r1000; jl: threeBytes; label: fourBytes; ... jmp end; label: threeBytes; ...

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-21 Thread Igor Stasenko
On 21 June 2012 16:59, Henrik Sperre Johansen henrik.s.johan...@veloxit.no wrote: Btw, if you want to optimize for shorter-encodings, couldn't you do asm    cmp: asm EAX with: 16r80;    jl: oneByte;    cmp: asm EAX with: 16r800;    jl: twoBytes;    cmp: asm EAX with:16r1000;    jl:

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-14 Thread Henrik Sperre Johansen
On 13.06.2012 14:59, Igor Stasenko wrote: On 13 June 2012 10:31, Philippe Marschall philippe.marsch...@netcetera.ch wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-14 Thread Igor Stasenko
On 14 June 2012 14:05, Henrik Sperre Johansen henrik.s.johan...@veloxit.no wrote: On 13.06.2012 14:59, Igor Stasenko wrote: On 13 June 2012 10:31, Philippe Marschall philippe.marsch...@netcetera.ch  wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Sven Van Caekenberghe
Hi Igor, It is very good that someone tries to optimize this, it is a weak point currently, performance wise. I am not a low-level guy, so I can't really help with the assembler code. But utf-8 encoding/decoding is an area that interests me. I can point to the 2 currently available utf-8

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Marcus Denker
On Jun 13, 2012, at 10:07 AM, Sven Van Caekenberghe wrote: Hi Igor, It is very good that someone tries to optimize this, it is a weak point currently, performance wise. I am not a low-level guy, so I can't really help with the assembler code. But utf-8 encoding/decoding is an area

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Philippe Marschall
On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an unicode integer value to 1..4-byte sequence of utf-8 then the outer piece of code (which is not yet written) will

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Sven Van Caekenberghe
On 13 Jun 2012, at 10:29, Marcus Denker wrote: We shoud standardize on *one* converter... what is the use of everyone doing it again? Ultimately, yes, there should be one. However, it does not hurt that multiple people are working on the same subject even if that sometimes means multiple

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Henrik Sperre Johansen
On 13.06.2012 10:31, Philippe Marschall wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an unicode integer value to 1..4-byte sequence of utf-8 then the outer piece of

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Philippe Marschall
On 06/13/2012 11:40 AM, Henrik Sperre Johansen wrote: On 13.06.2012 10:31, Philippe Marschall wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an unicode integer value

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Igor Stasenko
On 13 June 2012 11:40, Henrik Sperre Johansen henrik.s.johan...@veloxit.no wrote: On 13.06.2012 10:31, Philippe Marschall wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Igor Stasenko
On 13 June 2012 10:31, Philippe Marschall philippe.marsch...@netcetera.ch wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an unicode integer value to 1..4-byte

Re: [Pharo-project] Fastest utf-8 encoder contest

2012-06-13 Thread Philippe Marschall
On 06/13/2012 02:59 PM, Igor Stasenko wrote: On 13 June 2012 10:31, Philippe Marschall philippe.marsch...@netcetera.ch wrote: On 06/13/2012 04:44 AM, Igor Stasenko wrote: Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms

[Pharo-project] Fastest utf-8 encoder contest

2012-06-12 Thread Igor Stasenko
Hi, hardcore hackers. please take a look at the code and tell if it can be improved. The AsmJit snippet below transforms an unicode integer value to 1..4-byte sequence of utf-8 then the outer piece of code (which is not yet written) will accumulate the results of this snippet to do a