4 ms·
I feel like I've seen people say more than once that you can do things like this to improve the performance of C++ to what you see from this post with the "C wi
by FreezerburnV 8y ago
I feel like I've seen people say more than once that you can do things like this to improve the performance of C++ to what you see from this post with the "C with classes" style and reimplementing various bits of the stdlib. However, I don't believe I've ever seen somewhere that demonstrates this capability, and like you said, the "right solution" is not enforced, or is awkward, or hard to discover. What I would legitimately like to see, is something that takes something like what the author was doing, but also uses these features of C++ that seem to be talked about, but harder to find demonstrations of. Especially considering this is a relatively small amount of realistic code, I would love it if someone were to reimplement it using a custom allocator or memory pool or whatever other C++ features are available to get the performance to where it is in what the author wrote (or better?) to act as a kind of tutorial for how to use these things. This is something I'm particularly interested in because I've been learning some C++ again and playing around with writing some stuff with SDL, and would love to be able to incorporate the nice features of C++ into what I'm writing.