HTTP/2 Performance
The performance of the HTTP/2 client code seems to be absolutely terrible.
This part is in serious need of profiling.
I tested this by downloading a 10GB file from a remote server over a very fast ethernet connection, here are the results:
Wget 1.x:
Saving to: ‘/dev/null’
/dev/null 100%[======================================================================================>] 9,31G 89,9MB/s in 2m 13s
2018-06-13 19:01:01 (71,7 MB/s) - ‘/dev/null’ saved [10000000000/10000000000]
Wget2 with HTTP/2:
/dev/null 1% [> ] 133.46M 1.85MB/s
[Files: 0 Bytes: 0 [0 B/s] Redirects: 0 Todo: 1 Errors: 1 ]
Wget2 without HTTP/2:
/dev/null 100% [========================================================================================================================>] 9.31G 89.73MB/s
[Files: 1 Bytes: 9.31G [88.86MB/s] Redirects: 0 Todo: 0 Errors: 1 ]
I had to kill the Wget2 with HTTP/2 process since it was too slow. But this really does show that the HTTP/2 code needs a lot of work.