7.09.2025 состоялся релизPithon 3.14!
На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками.
Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный.
Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0
Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает:
▫️ соберет релизный Python 3.14 в новый Docker-образ
▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter)
▫️ распечатает результаты
Тест очень простой, усложняйте сами)
Вот какие результаты у меня:
=== Running ThreadPoolExecutor GIL ON
TOTAL TIME: 45.48 seconds
=== Running ThreadPoolExecutor GIL OFF
TOTAL TIME: 6.14 seconds
=== Running basic Thread GIL ON
TOTAL TIME: 45.54 seconds
=== Running basic Thread GIL OFF
TOTAL TIME: 4.74 seconds
=== Running with Multi Interpreter
TOTAL TIME: 18.30 seconds
Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами.
Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так!
Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL.
Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется.
Отдельно я затестил память и вот что вышло на 32 потока:
ThreadPoolExecutor GIL ON
305.228 MB
ThreadPoolExecutor GIL OFF
500.176 MB
basic Thread GIL ON
90.668 MB
basic Thread GIL OFF
472.444 MB
with Multi Interpreter
1267.788 MB
Пока не знаю как к этому относиться)
В целом - радует направление развития!
#release
#vocabulary
#collocations
#effect
@fluencyinenglish
@ieltsstrategies
🤞Sharing is caring🤞
❇️Effect
🔹side effect an unwanted and unplanned effect that something has – used especially (about drugs and medical treatment)
Common side effects of the drug may include headaches and muscle pains.
🔹after effects
bad effects that continue for a long time after the thing that caused them
A traumatic experience can have severe psychological after-effects war.
🔹repercussions /ˌriːpəˈkʌʃəns $ -pər-/ the effects that happen later as a result of an event or decision, especially a range of effects that continue for a long time
The scandal could have serious repercussions for her career.The judge’s decision is likely to have important repercussions for future cases of this kind.
🔹a knock-on effect used when something has an effect on something, which then has an effect on something else
Higher oil prices have a knock-on effect on other fuels
❇️VERBS
have an effect on something/somebody
Eating junk food will eventually have an effect on your health.
🔹have the effect of doing somethingThe news had the effect of making everyone feel better.
🔹produce an effect formalIf we combine these sounds, they produce an effect that is almost jazzy.
🔹feel an effect (=notice it)Small companies will feel the effect of the recession first.
🔹lessen/reduce an effect (=make an effect smaller or less severe)The government must take action to reduce the effects of pollution.
🔹cushion the effect of something(=make it less bad)Lower mortgage rates will cushion the effect of rising house prices.
🔹an effect lasts (=continues)The effect of the drug lasts about six hours.
🔹an effect wears off (=gradually stops)The effect of the anaesthetic was beginning to wear off.
❇️ADJECTIVES
🔹big/majorThe teachers’ strike had a big effect on many schools.
🔹significant/substantial/marked (=quite big)Global warming could have a significant effect on agriculture in many parts of the world.
🔹profound/powerful (=very big, in a way that changes someone or something significantly )My father’s death had a profound effect on me.
🔹dramatic (=very big and sudden)Taking the new drug had a dramatic effect on his health.
🔹negligible/minimal formal (=very small)The advertising campaign had a negligible effect on demand.
🔹immediate (=quick and sudden)The announcement had an immediate effect on stock prices.
good Inflation can sometimes have some good effects on the economy.
@fluencyinenglish
@ieltsstrategies
🔹positive/beneficial (=good, or helping someone or something in some way)The incident had a very positive effect on his career.badWorking too hard was beginning to have a bad effect on my health.
🔹negative/detrimental (=bad or harmful)the negative effects of low rainfall
@fluencyinenglish
@ieltsstrategies
🔹harmful/damaging (=causing harm or damage to something or someone)the harmful effects of drinking too much alcoholSome of the effects can be quite damaging.
🔹visible/noticeable (=an effect that you can clearly see)He drank five beers, but they did not seem to have any visible effect on him.
@fluencyinenglish
@ieltsstrategies
🔹the adverse effects formal (=the bad effects)No one told them about the adverse effects of smoking marijuana.
🔹the long-term/short-term effect(=having an effect for a long or short time)Many boxers suffer with the long-term effects of punches to the head.
@fluencyinenglish
@ieltsstrategies
🔹a knock-on effect (=an effect that is caused by something that has happened before)The strike could have a knock-on effect at other airports.
@fluencyinenglish
@ieltsstrategies
🔹a cumulative effect (=the effect of many things happening one after the other)The cumulative effect of these policies will be to push up inflation.
🔹the desired effect (=the effect you want)
@fluencyinenglish
@ieltsstrategies
🔹the full effect (=the whole effect)
🔹a calming/soothing effect (=one that makes you feel less angry, excited, or nervous)
@fluencyinenglish
@ieltsstrategies
#vocabulary
#collocations
#effect
@fluencyinenglish
@ieltsstrategies
🤞Sharing is caring🤞
❇️Effect
🔹side effect an unwanted and unplanned effect that something has – used especially (about drugs and medical treatment)
Common side effects of the drug may include headaches and muscle pains.
🔹after effects
bad effects that continue for a long time after the thing that caused them
A traumatic experience can have severe psychological after-effects war.
🔹repercussions /ˌriːpəˈkʌʃəns $ -pər-/ the effects that happen later as a result of an event or decision, especially a range of effects that continue for a long time
The scandal could have serious repercussions for her career.The judge’s decision is likely to have important repercussions for future cases of this kind.
🔹a knock-on effect used when something has an effect on something, which then has an effect on something else
Higher oil prices have a knock-on effect on other fuels
❇️VERBS
have an effect on something/somebody
Eating junk food will eventually have an effect on your health.
🔹have the effect of doing somethingThe news had the effect of making everyone feel better.
🔹produce an effect formalIf we combine these sounds, they produce an effect that is almost jazzy.
🔹feel an effect (=notice it)Small companies will feel the effect of the recession first.
🔹lessen/reduce an effect (=make an effect smaller or less severe)The government must take action to reduce the effects of pollution.
🔹cushion the effect of something(=make it less bad)Lower mortgage rates will cushion the effect of rising house prices.
🔹an effect lasts (=continues)The effect of the drug lasts about six hours.
🔹an effect wears off (=gradually stops)The effect of the anaesthetic was beginning to wear off.
❇️ADJECTIVES
🔹big/majorThe teachers’ strike had a big effect on many schools.
🔹significant/substantial/marked (=quite big)Global warming could have a significant effect on agriculture in many parts of the world.
🔹profound/powerful (=very big, in a way that changes someone or something significantly )My father’s death had a profound effect on me.
🔹dramatic (=very big and sudden)Taking the new drug had a dramatic effect on his health.
🔹negligible/minimal formal (=very small)The advertising campaign had a negligible effect on demand.
🔹immediate (=quick and sudden)The announcement had an immediate effect on stock prices.
good Inflation can sometimes have some good effects on the economy.
@fluencyinenglish
@ieltsstrategies
🔹positive/beneficial (=good, or helping someone or something in some way)The incident had a very positive effect on his career.badWorking too hard was beginning to have a bad effect on my health.
🔹negative/detrimental (=bad or harmful)the negative effects of low rainfall
@fluencyinenglish
@ieltsstrategies
🔹harmful/damaging (=causing harm or damage to something or someone)the harmful effects of drinking too much alcoholSome of the effects can be quite damaging.
🔹visible/noticeable (=an effect that you can clearly see)He drank five beers, but they did not seem to have any visible effect on him.
@fluencyinenglish
@ieltsstrategies
🔹the adverse effects formal (=the bad effects)No one told them about the adverse effects of smoking marijuana.
🔹the long-term/short-term effect(=having an effect for a long or short time)Many boxers suffer with the long-term effects of punches to the head.
@fluencyinenglish
@ieltsstrategies
🔹a knock-on effect (=an effect that is caused by something that has happened before)The strike could have a knock-on effect at other airports.
@fluencyinenglish
@ieltsstrategies
🔹a cumulative effect (=the effect of many things happening one after the other)The cumulative effect of these policies will be to push up inflation.
🔹the desired effect (=the effect you want)
@fluencyinenglish
@ieltsstrategies
🔹the full effect (=the whole effect)
🔹a calming/soothing effect (=one that makes you feel less angry, excited, or nervous)
@fluencyinenglish
@ieltsstrategies
#collocations
#effect
#vocabulary
@ieltsstrategies
@fluencyinenglish
لغت effect هم در رایتینگ و سپیکینگ معمولا کاربرد زیادی در آزمون آیلتس پیدا می کند. زیرا، در برخی از سوالات از ما خواسته میشه که تاثیرات یک سری عوامل را چه از لحاظ منفی وچه مثبت توضیح دهیم.
در ادامه کالوکیشن های مهم که همراه با effect می آیند را برای شما آورده ایم.
@ieltsstrategies
@fluencyinenglish
✅Crippling/destructive/damaging effect
تاثیر مخرب
@ieltsstrategies
@fluencyinenglish
✅ culminative effect
تاثیر کلی
✅ To ease the effect of sth
عواقب/اثرات .... را کاهش دادن.
@ieltsstrategies
@fluencyinenglish
✅Ameliorate/cushion/lessen/minimize/reduce the effect of sth
اثر/تاثیر چیزی را کاستن
@ieltsstrategies
@fluencyinenglish
✅marginal/negligible/subtle effect
تاثیر ناچیز
@ieltsstrategies
@fluencyinenglish
✅lasting effects
تاثیرات ماندگار
@ieltsstrategies
@fluencyinenglish
✅knock-on effect
تاثیر نا مطلوب، پی آمدهای ناگوار
@ieltsstrategies
@fluencyinenglish
✅ yo-yo effect
نوسان، ترقی و تنزل
✅ undesirable effect
اثر نامطلوب
@ieltsstrategies
@fluencyinenglish
✅ permanent/lasting/ long term effect
تاثیر دایمی
@ieltsstrategies
@fluencyinenglish