Results 12 comments of shimachao

感觉能回答上拼多多的这些题目,可以做爬虫组组长了。

hei,I found an imperfect but useful solution. Execute the following code before using httpx: h11._readers.header_field_re = re.compile(b"(?P[-!#$%&'*+.^_`/|~0-9a-zA-Z]+):[ \\t]*(?P([^\\x00\\s]+(?:[ \\t]+[^\\x00\\s]+)*)?)[ \\t]*")

> I think there's an issue with your timing decorator (perhaps related to async?), as it seems highly unlikely that you are doing everything in that api function (inc. multiple...

> @shimachao > > did you try measuring time without your logic but only validation? > > ```python > @api.post("messages", response={200: None}) > @track_time > async def publish_messages(request: ASGIRequest, message_in:...

> @shimachao > > Well I took your code - and my results are x500 faster than yours - are you sure you shared all the code ? > >...

卸载-重启 WSL-重装-把文件后缀改成 .http,解决了

看来是使用的这个工具混淆,太难了 https://www.sojson.com/jsobfuscator.html

> You need to enable NETEM features in your WSL kernel, it is not enabled by default. > > ```shell > # Clone > git clone https://github.com/microsoft/WSL2-Linux-Kernel.git > > #...

我也认为作者笔误了。怎么还没改过来