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

Implement script serialization #122

Merged
merged 1 commit into from
Mar 3, 2019
Merged

Implement script serialization #122

merged 1 commit into from
Mar 3, 2019

Conversation

luboslenco
Copy link
Contributor

The patch at #121 also makes JsSerialize() no longer crash. Using this patch:

  • Running Krom with --writebin flag will serialize krom.js file into krom.bin
  • If krom.bin is present Krom will pick it up, otherwise existing behavior is unchanged

&

  • krom.bin file size is ~30% larger compared to minified krom.js (-)
  • krom.bin startup time is ~20% faster (++)
  • krom.bin is not easily readable / editable (+/-)

Fixes #85.

@luboslenco
Copy link
Contributor Author

reader.open("krom.bin") will spit a warning message when file is absent. Will need to think of a clean way to supress that, preferably without using additional file existence check.

@skial skial mentioned this pull request Feb 6, 2019
1 task
@RobDangerous RobDangerous merged commit 8b34ba2 into Kode:master Mar 3, 2019
@RobDangerous
Copy link
Member

We should just remove that warning message, when calling open instead of using the filename constructor the caller is responsible for handling file-not-found situations.

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 this pull request may close these issues.

2 participants