vere icon indicating copy to clipboard operation
vere copied to clipboard

Aor jet

Open dozreg-toplud opened this issue 1 year ago • 2 comments

++aor jet. 10x speed up with this input:

(aor 'aaaaaaaaaaaaaaaa' 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')

dozreg-toplud avatar Jul 31 '24 10:07 dozreg-toplud

Please don't merge it just yet: I want to try adding little-endian optimization

dozreg-toplud avatar Jul 31 '24 17:07 dozreg-toplud

I included portable.h in the jet with an endianness check and an optimized version of the jet. It squizzes out ~17% of performance gains in the case of some ridiculous inputs ([a=(crip (reap 1.000.000 'a')) b=(crip ['a' (reap 1.000.000 'a')])])

Looks like the speed up comes from removing shl and and instructions, which I expected to be optimized away in the first version of the jet.

dozreg-toplud avatar Jul 31 '24 18:07 dozreg-toplud