Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--debug is faster to run than non debug. #662

Closed
onehundredfeet opened this issue Mar 16, 2024 · 2 comments
Closed

--debug is faster to run than non debug. #662

onehundredfeet opened this issue Mar 16, 2024 · 2 comments

Comments

@onehundredfeet
Copy link
Contributor

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.

@ncannasse
Copy link
Member

ncannasse commented Mar 19, 2024 via email

@ncannasse
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants