← Back to All 28+ Guides / Product Architecture
PRODUCT ARCHITECTURE • 6 MIN READ

How XrayMac Scans 200,000 Files in Under 3 Seconds: Swift & Kernel APIs

A look under the hood of XrayMac's high-speed engine: POSIX getattrlistbulk, asynchronous Grand Central Dispatch queues, and native Swift performance.

Published: 2026-09-12 By XrayMac Engineering 100% Native Swift

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.

Free To Download

Experience Fast, Native Mac Storage

Download XrayMac for free. Inspect your storage, visualize disk hogs, and explore your drives with 100% on-device privacy. Optional upgrades can be activated anytime directly within the app if you ever need them.