more secure locks and a script to create a system image of juliaMSI for faster boot times, still experimental but everything else remains pristine
This commit is contained in:
@@ -2422,8 +2422,22 @@ end
|
||||
else
|
||||
push!(newly_created_folders, replace(basename(file_path), r"\.imzML$"i => ""))
|
||||
end
|
||||
|
||||
# --- Periodic Memory Reclamation ---
|
||||
# Force GC and return memory to the OS after processing each large file
|
||||
GC.gc(true)
|
||||
if Sys.islinux()
|
||||
ccall(:malloc_trim, Cint, (Cint,), 0)
|
||||
end
|
||||
|
||||
current_step += 1
|
||||
end
|
||||
|
||||
# Final memory cleanup for the batch
|
||||
GC.gc(true)
|
||||
if Sys.islinux()
|
||||
ccall(:malloc_trim, Cint, (Cint,), 0)
|
||||
end
|
||||
|
||||
# --- 3. Final Report ---
|
||||
total_time_end = round(time() - total_time_start, digits=3)
|
||||
|
||||
Reference in New Issue
Block a user