Closed ayushanand18 closed 1 year ago
Interestingly, I have started playing with Request Headers and I find that some minor tweaks can increase performance by more than 25%. I tested this response header:
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)\
Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.52",
"Accept-Encoding": "gzip, deflate, br",
"Host": "api.obis.org",
"Connection": "keep-alive",
}
And found that it increased speed by more than 27%.
Overview
This PR is huge and I'm really sorry for that.
Changes introduced
Thanks!