Does better C++ code or optimization really improve performance or is everything mostly controlled by hardware and network speed during busy times?
If network also means node, the answer is definitely yes. For example, some node software sync faster than others. Jameson Lopp even write a blog about it.
Performance Rankings
1. Bitcoin Core 30.0: 12 hours, 7 minutes
2. Gocoin 1.11.0: 13 hours, 0 minutes (projected)
3. Libbitcoin Node 4.0.0: 20 hours, 51 minutes
4. Mako 41ef1040: 1 day, 18 hours, 4 minutes
5. BTCD 0.25.0: 3 days, 11 hours, 28 minutes