318
submitted 2 weeks ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 5 points 2 weeks ago

Arc is not free, and the extra atomic operations + heap allocations can become a bottleneck.

[-] [email protected] 1 points 2 weeks ago

Oh, I did not know that. Well, it makes sense that it has a heap allocation, as it becomes more or less global. Though not sure why the atomic operations are needed when the value inside is immutable.

this post was submitted on 05 Jul 2025
318 points (100.0% liked)

Programmer Humor

25217 readers
592 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS