Scanning an entire 1TB SSD containing over 500,000 files in under 5 seconds sounds difficult. Yet XrayMac performs this task with ease. Here is the engineering behind our scan architecture.
Native Swift Compilation
Many modern utilities are built using web-based desktop wrappers. These applications require hundreds of megabytes of RAM just to render a window, and file traversal in script runtimes suffers from single-threaded bottlenecks.
XrayMac is compiled directly to native ARM64 machine code for Apple Silicon and x86_64 for Intel Macs using Swift 6.
Low-Level Kernel Filesystem APIs
Rather than executing individual stat() calls for every file, XrayMac utilizes low-level Darwin kernel APIs like getattrlistbulk. This retrieves file size, directory attributes, and modification timestamps in large memory buffers directly from APFS in a single kernel context switch.