From 49100f8a97275448978037d1d57993dd9fd9a554 Mon Sep 17 00:00:00 2001 From: Ven0m0 <82972344+Ven0m0@users.noreply.github.com> Date: Sun, 3 May 2026 04:46:06 +0000 Subject: [PATCH] perf: optimize file reading in Citra_3DS_Manager Replaces the inefficient `Loop, Read` command with `FileRead` followed by `Loop, Parse` in `LoadDestinations()`. Loading the entire file into memory first significantly reduces disk I/O overhead compared to reading line by line. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- Other/Citra_mods/Citra_3DS_Manager.ahk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Other/Citra_mods/Citra_3DS_Manager.ahk b/Other/Citra_mods/Citra_3DS_Manager.ahk index ec79d4a..6ca81b4 100644 --- a/Other/Citra_mods/Citra_3DS_Manager.ahk +++ b/Other/Citra_mods/Citra_3DS_Manager.ahk @@ -27,9 +27,10 @@ LoadDestinations(){ DestMap := {} if !FileExist(DestCsv) return - Loop, Read, %DestCsv% + FileRead, csvData, %DestCsv% + Loop, Parse, csvData, `n, `r { - line := Trim(A_LoopReadLine) + line := Trim(A_LoopField) if (line = "" || !InStr(line, ",")) continue StringSplit, p, line, `,