I'm read a large-ish (100mb+) text files to use on the frontend but I'm getting very slow read speeds. 130mb is taking over 15 seconds. After reading the file I need to do some very light operations on it.
Since I'm a rust newbie I was hoping to do the latter part it in JS for now.
Standard readTextFile as well as this super simple rust command are performing almost the same.
#[tauri::command]
fn get_file_content(file_path: &str) -> String {
let content = fs::read_to_string(path).expect("ERROR");
content
}```
Any tips on getting this data to frontend faster?