Closed MaxGraey closed 3 years ago
Aha, I wonder whether this fixes the issue here?
https://github.com/ColinEberhardt/assemblyscript-regex/blob/main/assembly/regexp.ts#L155-L179
Can you do me a favour? would you mind rebasing onto the latest commit? (https://github.com/ColinEberhardt/assemblyscript-regex/commit/482ee80448f428b36e2460dbe7c759a4e3ace485)
I've added benchmarking to the CI, however had not enabled it for PRs
Aha, I wonder whether this fixes the issue here?
Maybe
Can you do me a favour? would you mind rebasing onto the latest commit?
Sure. Could you also use optimized.wasm
instead untouched.wasm
for benchmark here:
https://github.com/ColinEberhardt/assemblyscript-regex/blob/main/benchmark/benchmark.js#L8?
Sure. Could you also use optimized.wasm instead untouched.wasm for benchmark here:
Good spot - I'll make that change shortly. @willemneal is making some significant changes to the tests #19 so I don't want to make any more changes in that area just now.
Hmm, CI output: 'auto-push' is enabled but 'github-token' is not set. Please give API token to push GitHub pages branch to remote
Hmm, CI output: 'auto-push' is enabled but 'github-token' is not set.
Ahh - I'll sort that out. I'll get this PR merged regardless
Wait but how about changes in benchmark scripts? =)
Wait but how about changes in benchmark scripts? =)
I'll get to that ;-)
These changes have had a small +ve improvement on performance: https://colineberhardt.github.io/assemblyscript-regex/dev/bench/
Great. But it still bench unoptimized.wasm
. Much more sense benchmarking optimized.wasm
Sometimes better use switch case with explicit supeclass casts instead indirect calls via vtable