News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by skohan on Monday December 14, 2020 @05:51PM (#25424452)
RAII can be an anti-pattern for certain high performance applications. Yes a lot of times you want the assurance you're always dealing with properly initialized memory, but if you're really optimizing for memory performance (one of the jobs C is for) then a lot of times initializing and deinitializing small blocks of memory is exactly the opposite of what you want to do.
Re:A Defer Mechanism for C by zelly on Monday December 14, 2020 @08:35PM (#25425979)
that's what arenas are for