Re:The Myth of Smart Pointers
by actionfromafar on Friday December 01, 2023 @07:17AM
(#38485897)
C++ with CGI is weirdly like a fast PHP with the same teardown/clean slate property.
It got surprisingly fast actually. We also did things like statically link it which drove the overhead of restarting down further (when the dynamic linker is a measurable proportion of your total execution time....), and I really liked knowing we had a fully clean slate on every request.
I mostly do Ruby these days, and the one thing I strongly dislike is the horribly slow startup...
We'd manually deallocate particularly big allocations, but otherwise we knew the process would die within fractions of a second anyway, so the increased memory use was fairly limited.
We served a couple of million users with that using servers with a combined capacity lower than my current desktop.