Skip to content

Rewrite nodejs-snowflake in Rust#14

Merged
tangledbytes merged 10 commits intomasterfrom
utkarsh-pro/rewrite
Feb 2, 2022
Merged

Rewrite nodejs-snowflake in Rust#14
tangledbytes merged 10 commits intomasterfrom
utkarsh-pro/rewrite

Conversation

@tangledbytes
Copy link
Copy Markdown
Owner

Description

This PR rewrites entire nodejs-snowflake into Rust. Following are the reasons:

  1. Noticeable performance gains when using WASM instead N-API (now Node-API).
  2. N-API required to build binaries for each platform and NodeJS version, however owing to the design of WASM it is quite easy to compile just for the WASM VM. This allows easy installation of the extension without needing any build tools (likes of Visual Studio needed to install?? #13).
  3. I ❤️ Rust.

Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
@tangledbytes tangledbytes merged commit aaae2b6 into master Feb 2, 2022
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.

1 participant