hashlink icon indicating copy to clipboard operation
hashlink copied to clipboard

--debug is faster to run than non debug.

Open onehundredfeet opened this issue 5 months ago • 1 comments

I'm finding a very odd behaviour where I'm finding the same code with --debug is running about 1/6th (approx 15%) faster than without. This is the opposite of what I would expect.

I've tried both hashlink and hl/c. I have no idea why --debug would be faster. This is the only switch I am changing.

Any ideas? I'm happy investigating, but it seems to be broadly distributed across all routines, rather than a single routine taking longer.

onehundredfeet avatar Mar 16 '24 21:03 onehundredfeet

That's very weird as --debug shouldn't change much HashLink output. You can compare the dump/hlcode.txt with -D dump

Le sam. 16 mars 2024 à 14:45, Ryan Cleven @.***> a écrit :

I'm finding a very odd behaviour where I'm finding the same code with --debug is running about 1/6th (approx 15%) faster than without. This is the opposite of what I would expect.

I've tried both hashlink and hl/c. I have no idea why --debug would be faster. This is the only switch I am changing.

Any ideas? I'm happy investigating, but it seems to be broadly distributed across all routines, rather than a single routine taking longer.

— Reply to this email directly, view it on GitHub https://github.com/HaxeFoundation/hashlink/issues/662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQBFJJUR5PFIX247L4TYYS4OLAVCNFSM6AAAAABEZT44KGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TAMRWG44TCNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ncannasse avatar Mar 19 '24 01:03 ncannasse

You can compare bytecode output with -D dump=pretty then look at dump/hlcode.txt

ncannasse avatar Apr 06 '24 12:04 ncannasse