Найти - Пользователи
Полная версия: Использование pypy (python2) дико увеличивает нагрузку
Начало » Python для экспертов » Использование pypy (python2) дико увеличивает нагрузку
1
WhiteTiger
Приветствую. Есть многопоточный скрипт который из словаря опрашивает массу URL через requests.
Вроде никаких вычислений нет, всё примитивно. В процессе работы htop показывает юз памяти 0.1% и CPU процентов 5-10. Это вполне ожидаемые цифры. Однако, если пустить его через pypy (python2), CPU сразу становится 100%, а рама постоянно растёт. Чем дольше идёт работа, тем больше естся рама. Максимум до чего дожидался - 2% RAM. Это 1.2Гб, в 20 раз больше чем без pypy. С чем это может быть связано?
dianna
это действительно хорошо? А это ваш собственный опыт? mapquest
adamschule85
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.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB