Is calling a Rust function from NodeJS via WASM like really slow?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • syntect_test

  • You should check out my example I posted above, here https://github.com/etrombly/syntect_test . I think I'm getting pretty good performance from it.

  • syntect

    Rust library for syntax highlighting using Sublime Text syntax definitions.

  • Very recently, I stumbled onto a library called syntect, which is a syntax highlighting library, and I got interested in the project because it promises to be really fast.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • shiki

    A beautiful yet powerful syntax highlighter

  • I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.

  • PrismJS

    Lightweight, robust, elegant syntax highlighting.

  • I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.

  • Highlight.js

    JavaScript syntax highlighter with language auto-detection and zero dependencies.

  • I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.

  • dev

    Development repository for the CodeMirror editor project

  • I ended up using CodeMirror 6 for my syntax highlighting needs.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts