TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

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

Hashtags

Резултати

Пронајдени 787 слични објави

Глобално пребарување

Surge Channel

@SurgeChannel · Post #914 · 23.06.2024 г., 05:51

#Mac#Release ⚠️版本回撤‼️ Version 5.7.4-2805 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #913 · 23.06.2024 г., 05:49

#Mac#Release Version 5.7.4-2806 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #912 · 23.06.2024 г., 05:49

#Mac#Release ⚠️版本回撤‼️ Version 5.7.4-2805 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #911 · 21.06.2024 г., 12:23

#Mac#Release Version 5.7.4-2806 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #910 · 21.06.2024 г., 11:33

#Mac#Release ⚠️版本回撤‼️ Version 5.7.4-2805 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #909 · 21.06.2024 г., 11:32

#Mac#Release Version 5.7.4-2806 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #908 · 21.06.2024 г., 07:30

#Mac#Release ⚠️版本回撤‼️ Version 5.7.4-2805 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #907 · 21.06.2024 г., 07:11

#Mac#Release Version 5.7.4-2806 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #904 · 21.06.2024 г., 05:32

#Mac#Release Version 5.7.4-2805 - Due to the sudden shutdown of a public STUN server that Surge Ponte relies on, resulting in the unavailability of Surge Ponte, we have carried out an emergency replacement. Additionally, we will build our own STUN server in the future to avoid such issues. - Enhance compatibility with VPN and multiple network cards In previous versions, if the enhanced mode was enabled, all outgoing packets would be forced to use the primary interface due to Surge overriding the system's routing table. This bypassed the routing table to avoid creating a loop. However, this also caused issues where packets could not be sent from the correct interface in cases with multiple network cards or other VPNs. This version improves on that design. Now, in enhanced mode, Surge will automatically check routes and still use standard routing for TCP/UDP packets if there are higher priority sub-routes present, enhancing compatibility. - Fix an issue where DOMAIN-SUFFIX rules may become invalid if duplicate DOMAIN and DOMAIN-SUFFIX rules are included in the rule set - Other bug fixes. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #855 · 29.05.2024 г., 04:08

#Mac#Release Version 5.7.3-2785 - Now you can see the number of times a rule has been used in the rule list. - Optimized the implementation method of blocking QUIC traffic to increase the likelihood of clients correctly falling back. - The Smart group will use the SUBSTITUTE policy (DIRECT) instead of failing directly when there are no sub-policies. - Fixed an issue where the server-cert-fingerprint-sha256 parameter was not effective for TLS-like protocols with sni=off settings. - Added a new rule type HOSTNAME-TYPE, used to determine the type of request hostname. Optional values are: IPv4, IPv6, DOMAIN, SIMPLE. (SIMPLE refers to hostnames without a dot, such as localhost) - Optimized DNS request logs. Now more information is displayed. Additionally, if DIRECT policy connects directly without triggering DNS in the rule system, related DNS logs can still be shown. - When deleting a policy that is being used by a policy group, it is now allowed to delete it directly and automatically remove it from all policy groups. - Bug fixes and other Improvements. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #817 · 10.05.2024 г., 04:42

#Mac#Release Version 5.7.2-2762 - Optimize the matching performance of ASN rules in the rule set. - Fix the issue where FINAL rules cannot be edited through UI. - Fix the problem that invalid cron expressions would cause scripts to be executed repeatedly. - Optimized the management mechanism of the script engine. - Other detail issues fixed. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Channel

@SurgeChannel · Post #815 · 10.05.2024 г., 03:30

#Mac#Release Version 5.7.2-2761 - Optimize the matching performance of ASN rules in the rule set. - Fix the issue where FINAL rules cannot be edited through UI. - Fix the problem that invalid cron expressions would cause scripts to be executed repeatedly. - Optimized the management mechanism of the script engine. - Other detail issues fixed. Official Channel: @SurgeTestFlightFeed

Hashtags

12•••5•••10•••1213141516•••20•••25•••30•••35•••40•••45•••50•••55•••60•••6566
ПретходнаСтраница 14 од 66Следна