Pre-allocated the list of program for performance.

This commit is contained in:
2025-02-06 23:03:45 -08:00
parent 1decb79a4e
commit cf2b5b8cec
3 changed files with 23 additions and 30 deletions

View File

@@ -1,10 +1,10 @@
import AppKit
struct Program {
let path: String
let name: String
let ext : String
var img : NSImage?
var path: String = ""
var name: String = ""
var ext : String = ""
var img : NSImage? = nil
}
final class PathManager {