hgweb: skip body creation of HEAD for most requests
The body is thrown away anyway, so this just wastes a lot of CPU time. In the case of /archive/, this skips manifest processing and the actual file archiving, resulting in a huge difference. The most tricky part here is skipping the Content-Length creation as it would indicate the output size for the corresponding GET request.
parent
e0c0545e2e55
No related branches found
No related tags found
Showing
- mercurial/hgweb/hgweb_mod.py 3 additions, 2 deletionsmercurial/hgweb/hgweb_mod.py
- mercurial/hgweb/request.py 3 additions, 0 deletionsmercurial/hgweb/request.py
- mercurial/hgweb/server.py 8 additions, 1 deletionmercurial/hgweb/server.py
- mercurial/hgweb/webcommands.py 3 additions, 0 deletionsmercurial/hgweb/webcommands.py
Loading
-
mentioned in commit 263bee9f9772
-
mentioned in commit a7a05ba2c61e
-
mentioned in commit 6cc0f317de4d
-
mentioned in commit cd125eef4388
Please register or sign in to comment