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

Build Layout.js lib into Bangle.js firmware #3617

Open
gfwilliams opened this issue Oct 21, 2024 · 1 comment
Open

Build Layout.js lib into Bangle.js firmware #3617

gfwilliams opened this issue Oct 21, 2024 · 1 comment

Comments

@gfwilliams
Copy link
Member

Right now, every app that uses Layout has to include its own copy. Parsing it in initially takes 25ms by itself, and then executing it to render on something like a navigation message takes 240ms when running from internal flash would be 220ms.

... so if we built it into the Bangle.js firmware we'd save around 45ms loading something like a navigation message.

The reason we didn't build it in initially was that it was changing rapidly, but the last real change was made a year ago so I think we'd be safe.

Of course if it were to need changes after this, realistically we're looking at waiting until the next Bangle.js firmware release before those changes could go it...

Any thoughts?

@gfwilliams
Copy link
Member Author

Just to add to this, we also have some "ram" keywords to aid performance from external flash. When running on internal flash those could be removed and would likely get it running even faster.

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

1 participant