A hundred inserts per second is going to hit 2^32 within a year and a half. I've seen that volume repeatedly. A colleague has seen this limit blow up prod. Do you really want to spend time on a project you're sure can never succeed to this extent?
4,519 karma · joined August 21, 2015
“You don’t understand, Mr. Friedman, this canal is a jobs program to provide work for as many men as possible.”
“Oh, I see. I thought you were trying to build a canal. If you really want to create jobs, then by all means give these men spoons, not shovels.”
(https://news.ycombinator.com/item?id=1636198 linked to the original platform, which sadly shut down after a few years.)
It's a quirk of C++ that reference args can't be replaced but pointer args can.
A Java exception can suppress stack trace init if needed, letting an instance be created once and reused very cheaply (though logs will be less useful).