---
title: "Comment by Tarun Sharma on \"Building a 9MB Code Editor in Rust and Tauri: An Open-Source Alternative to Heavy IDEs\" | Hashnode"
description: "9.6MB is impressive, Tauri skipping the bundled Chromium is the right tradeoff for a daily-driver editor. curious how the React side handles syntax highlighting"
url: "https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6/comment/6a8557fe7ca8fc23e538cc6a"
---

[Discussion](https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6)

Comment [Building a 9MB Code Editor in Rust and Tauri: An Open-Source Alternative to Heavy IDEs](https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6)

[Aug 19](https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6/comment/6a8557fe7ca8fc23e538cc6a)

9.6MB is impressive, Tauri skipping the bundled Chromium is the right tradeoff for a daily-driver editor. curious how the React side handles syntax highlighting on big files, are you tokenizing and rendering the whole file or virtualizing so only visible lines get diffed, since that's usually where "lightweight editor" claims fall apart once someone opens a 5k line file and the tab-switching stops feeling instant

[Great Chijioke](https://hashnode.com/@great001)

[Aug 19](https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6/comment/6a8557fe7ca8fc23e538cc6a#reply-6a856636fb0e4c5ce9d0950a)

Actually I am using Monaco editor(library) which is the same file rendering library that is used in VS code. So it would be able to render any file despite the numbers of lines of code

[Tarun Sharma](https://hashnode.com/@101beardo)

[Aug 22](https://hashnode.com/posts/building-a-9mb-code-editor-in-rust-and-tauri-an-open-source-alternative-to-heavy-ides/6a841e77851bea7c88c952e6/comment/6a8557fe7ca8fc23e538cc6a#reply-6a89a987181f56a1f736a29e)

Monaco makes sense, that's the safe choice for correctness on big files since it's the same engine handling huge files in VS Code itself. Does bundling Monaco eat much into the 9.6MB though, it's not exactly tiny compared to something like CodeMirror, curious what the size tradeoff looked like when you picked it.
