WhiteTiger
Июль 31, 2020 10:56:21
Приветствую. Есть многопоточный скрипт который из словаря опрашивает массу URL через requests.
Вроде никаких вычислений нет, всё примитивно. В процессе работы htop показывает юз памяти 0.1% и CPU процентов 5-10. Это вполне ожидаемые цифры. Однако, если пустить его через pypy (python2), CPU сразу становится 100%, а рама постоянно растёт. Чем дольше идёт работа, тем больше естся рама. Максимум до чего дожидался - 2% RAM. Это 1.2Гб, в 20 раз больше чем без pypy. С чем это может быть связано?
dianna
Авг. 29, 2020 06:50:44
это действительно хорошо? А это ваш собственный опыт?
mapquest
adamschule85
Март 22, 2022 18:48:14
Python is one of the most widely used programming languages among programmers, although it has several drawbacks. It can be up to 100 times slower than other lower-level languages, depending on the application. That's why, when Python's speed becomes a constraint for customers, many organizations rewrite their apps in a different language. But what if there was a way to maintain Python's great features while also speeding it up? PyPy is a Python programming language. PyPy is a lightweight Python interpreter that is a worthy replacement for CPython 2.7, 3.6, and 3.7. You can boost the speed of your program by installing and running it with it. The amount of improvement you'll notice is determined by the application you're using. You can
view article here on
How to Download Among Us in Just Get Blogging here.