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

What's the minium Flash memory does Rhai need for microchips? #720

Open
youngzhaozju opened this issue May 6, 2023 · 2 comments
Open

What's the minium Flash memory does Rhai need for microchips? #720

youngzhaozju opened this issue May 6, 2023 · 2 comments
Labels

Comments

@youngzhaozju
Copy link

Hey,
I want to utilize Rhai on STM32. I found some advices from the book that it is not advised to utilized it on microchips. I am wondering what's the minimum requirements? And, how to make it to be minimum?
Thank you!
Yang

@schungx
Copy link
Collaborator

schungx commented May 6, 2023

Well, mainly code size. I think for a full-build Rhai engine, the code size is at least of the order of 700-800KB. That may be too large for embedded. If your device can contain that, then it should be fine for you.

Of course, you can prune down features and you should be able to get the size down, but I see 300-400KB as a practical lower limit.

Performance-wise, I've seen a few users use Rhai on the STM32 quite successfully. You may search for some of those projects.

@schungx
Copy link
Collaborator

schungx commented May 12, 2023

@youngzhaozju did you end up finding out?

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

No branches or pull requests

3 participants
@schungx @youngzhaozju and others