←back to thread

232 points l8rlump | 1 comments | | HN request time: 0s | source
Show context
polishdude20 ◴[] No.44506464[source]
Hey congrats on the app! This is just what I'm looking for :)

Just installed it on my m1 mac and opened a folder of RAW files. The initial loading lagged my whole macbook. Couldn't even open the dock. Once the thumbnails all loaded it's better but not as buttery smooth as I would have hoped! Would love to know what other commercial apps do that make them not lag. Is it just that they're written natively?

replies(3): >>44506563 #>>44506591 #>>44506674 #
TheDong ◴[] No.44506674[source]
I mean, it's making 720px width jpg thumbnails using the CPU https://github.com/CyberTimon/RapidRAW/blob/fc21ede729b45d97...

And then it's sending these thumbnails back from rust to javascript as base64 encoded strings, not using a shared buffer: https://github.com/CyberTimon/RapidRAW/blob/fc21ede729b45d97...

This is the sorta stuff that native apps mostly don't do. They don't base64 an image just to send it to a different app (react) to base64 decode it (via a third app, webkit) via a slow ipc mechanism (tauri) from itself to itself, allocating 6x the chunks of memory along the way for one bit of data (the 6x are: raw data in rust, base64 data in rust, json encoded base64 in rust for tauri ipc, json encoded base64 in javascript, base64 in javascript, raw image data in webkit to finally view).

replies(2): >>44506867 #>>44507087 #
rossant ◴[] No.44506867{3}[source]
6x sounds bad. Might be a sign of vibe coding?
replies(2): >>44506896 #>>44507723 #
1. ImGonnaVibeCode ◴[] No.44506896{4}[source]
>React and Rust, with the support from Google Gemini

>immensely grateful for Google's Gemini

>AI Studio's free tier