Now that we have learned a lot about networking and classes that Qt has implemented to support it, we can start to discuss network programming performance challenges. Let's start with the basics.
Improving network performance
General network performance techniques
These are just applications of the basic techniques that we learned about in Chapter 1, Understanding Performant Programs, namely the following:
- Cache the contents: This one is simple – if we have already fetched some content, we do not have to fetch it again! QNetworkAccessManager supports caching, but it has to be explicitly enabled.
- Don't send unnecessary bytes: Another no-brainer. What we don't send we don't have to pay for.
- Parallelize...