Parallelism in python isn't working right

前端 未结 3 717
渐次进展
渐次进展 2021-01-02 17:47

I was developing an app on gae using python 2.7, an ajax call requests some data from an API, a single request could take ~200 ms, however when I open two browsers and make

3条回答
  •  星月不相逢
    2021-01-02 18:50

    I would look at where the time is going. Suppose, for example, the server can only answer one query every 200ms. Then there's nothing you can do, you'll only get one reply every 200ms because that's all the server can provide you.

提交回复
热议问题