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

Use "restrict" to achieve even higher performance in benchmarks #3

Open
dumblob opened this issue Jun 17, 2021 · 1 comment
Open

Use "restrict" to achieve even higher performance in benchmarks #3

dumblob opened this issue Jun 17, 2021 · 1 comment

Comments

@dumblob
Copy link

dumblob commented Jun 17, 2021

I see you're doing plenty of interesting benchmarks. I was thinking that according to my understanding, Morty is pretty much "aliasing-safe" and thus it might greatly benefit from using restrict (either in the virtual machine itself or in the transpiled Morty to C).

Have you thought about using restrict?

@mobarski
Copy link
Owner

I haven't thought about it, but it seems like a good direction to investigate.
My current benchmarking showed me that current VM optimizations can improve performance by around 100%, which is nice, but it's not as significant as I thought it will be.
Transpilation on the other hand gives 90% of the C performance (when doing stack tracking in the Morty compiler, and using gcc -O3 ) or 50% when implemented naively. So my current direction is to treat the VM as a permacomputing solution and transcompilation as a performant / energy-friendly solution.
I'm trying to be able to transpile Morty VM cell-code (not only Morty source code) into target languages.

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