logoalt Hacker News

c-hendrickstoday at 4:08 PM1 replyview on HN

I always got a kick out of that, coming from a JavaScript background where people constantly harp on the size of node modules.

My Tauri project, where the backend is much smaller code-wise than the frontend, has 9gb of rust artifacts (node_modules is 550mb for comparison)


Replies

tredre3today at 4:34 PM

Rust isn't great, and it shouldn't be a surprised since it's designed after npm. However one metric where nodes_modules is still worse for me is the sheer number of small files in it.

Having nearly one million files in nodes_modules isn't that unusual. The problem is that on most common file systems the minimum allocation is usually at least 4KB. So even if the actual data is less than 500MB, you end up with 4GB disk space used/wasted.

show 1 reply