It's made to build line of sight of players for a mmo game.
The service run as a loop, ideally at 60FPS (1 iteration = 16ms). More players in the world = more time to iterate.
I have the belief that writing in C++ the same would be faster but: 1. That's a belief, I didn't do any benchmark 2. I don't have the belief that C++ will be the fastest to do it.
What HN does think about that ?
query a redis db
General rule: if you're looking for "fastest", pulling data over the network is not part of the solution.As for the choice of language, it's going to be heavily motivated by what languages you (or your team) know how to benchmark and optimize. It doesn't matter if, say, Befunge is the "fastest" if you don't have anybody working on it that can optimize it.
There's a reason why many AAA titles use C++. No benchmark necessary.