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

JavaScript implementation of makefsdata #634

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

mthiesen
Copy link
Contributor

I have reimplemented the makefsdata tool in pure JavaScript. This frees us from having to maintain the binary makefsdata tool for different platforms, which was always a hassle. Also, the project can now be built on platforms for which we did not previously provide a makefsdata binary.

For compression, I used the pako library, which is a port of the zlib library to JavaScript. The compression is reasonably fast, and it even compresses a bit better than the miniz library we used with the C implementation.

This version of makefsdata does not have all the features of the original, but it covers everything needed for this project.

www/makefsdata.js Outdated Show resolved Hide resolved
@Pelsin
Copy link
Contributor

Pelsin commented Nov 21, 2023

Tested, seems to work nicely!

arntsonl
arntsonl previously approved these changes Nov 22, 2023
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for resolve-conditions on @Pelsin 's requests before I close this, but looks fantastic. Thank you @mthiesen for doing this, should make it much easier to have everything in Javascript!

Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!!

@arntsonl arntsonl merged commit a505215 into OpenStickCommunity:main Nov 28, 2023
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.

3 participants