TGTGInsightаналитика telegramLIVE / telegram public index
← [404] — программирование

TGINSIGHT SIMILAR POSTS

Найти похожее

Источник @procode404 · Post #3864 · 30 нояб.

​🐌Всё про ускорение Python-кода —[1:29:40] По сравнению с низкоуровневыми языками программирования, Python можно считать довольно медленным, поскольку он полностью состоит из скриптов. Из этого видео вы узнаете о базовых вещах, которые позволят ускорить ваш Python-код и избежать основных ошибок, которые допускают новички в этом вопросе. 1. Каким должен быть код — [7:15] 2. Профилирование — [8:38] 3. Пример профилирования — [12:05] 4. Что можно улучшить в коде? — [36:34] 5. Как избегать циклы — [36:42] Перейти к просмотру #видео#python

Результаты

Найдено 2 похожих постов

Поиск: #interpreter

当前筛选 #interpreter清除筛选
djangoproject

@djangoproject · Post #156 · 06.09.2016, 01:43

https://wiki.python.org/moin/GlobalInterpreterLock In #CPython, the #global#interpreter lock, or #GIL, is a mutex that prevents multiple native #threads from executing Python bytecodes at once. This lock is necessary mainly because CPython's memory management is not thread-safe. (However, since the GIL exists, other features have grown to depend on the guarantees that it enforces.)

djangoproject

@djangoproject · Post #159 · 12.09.2016, 17:37

https://docs.python.org/3/library/atexit.html The #atexit module defines #functions to #register and #unregister cleanup functions. Functions thus registered are automatically executed upon normal interpreter termination. atexit runs these functions in the reverse order in which they were registered; if you register A, B, and C, at #interpreter#termination time they will be run in the order C, B, A.