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

Optimize online CoAP decoder #43

Closed
twyatt opened this issue Jan 13, 2021 · 2 comments · Fixed by #270
Closed

Optimize online CoAP decoder #43

twyatt opened this issue Jan 13, 2021 · 2 comments · Fixed by #270

Comments

@twyatt
Copy link
Member

twyatt commented Jan 13, 2021

#42 integrated a CoAP decoder webapp that is deployed to GitHub Pages.

It utlilizes browserDevelopmentWebpack Gradle task for building the static pages for the webapp. Unfortunately the development builds are extremely bloated. Attempts to use the production tasks for generating web distributions failed (unable to call Kotlin from JavaScript).

Testing with the js(IR) compiler worked (for calling Kotlin from JavaScript) but did not work with the current version of Okio (which is not compiled with IR compiler).

In the future we should either:

  1. Check if js(LEGACY) has fixes that properly allow calling Kotlin from JavaScript
  2. Switch to js(IR) when Okio supports it (preferred)

More details can be found at https://stackoverflow.com/a/65680291/196486.

@twyatt twyatt changed the title Optimize online CoAP encoder/decoder Optimize online CoAP decoder Jan 21, 2021
@twyatt

This comment has been minimized.

@twyatt
Copy link
Member Author

twyatt commented Dec 24, 2023

We switched to IR in #79, should find time to test if the production webpack builds work (and if so, switch to deploying with them).

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

Successfully merging a pull request may close this issue.

1 participant