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 Mac's Changelog

@surgemacchangelog · Post #1166 · 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 Mac's Changelog

@surgemacchangelog · Post #1164 · 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

Surge Mac's Changelog

@surgemacchangelog · Post #1158 · 29.04.2024 г., 13:41

#Mac#Release Version 5.7.1-2758 - Optimize the matching performance of small rule sets, especially evident on older CPU models. - The external resource update page can display error information generated by rule set processing. - Automatically ignore invalid empty lines in the rule set. - Fixed an issue where applying temporary rules would not interrupt existing connections if a policy change occurred. - Fixed an issue when using Ponte policy within Smart group, if the target device is itself, it was not automatically switched to DIRECT policy. - Corrected the time error displayed in request logs for Ponte device requests. - Fixed a low probability crash that occurs when external policy group content changes. - During the initialization phase of Smart group, no longer display most used tags to avoid misunderstanding . - Fixed a crash that could occur when adding a policy group if an external policy was selected but no URL was provided. - Corrected an issue where items did not correctly display their storage location after being moved on the key management page. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #1156 · 29.04.2024 г., 11:14

#Mac#Release Version 5.7.1-2757 - Optimize the matching performance of small rule sets, especially evident on older CPU models. - The external resource update page can display error information generated by rule set processing. - Automatically ignore invalid empty lines in the rule set. - Fixed an issue where applying temporary rules would not interrupt existing connections if a policy change occurred. - Fixed an issue when using Ponte policy within Smart group, if the target device is itself, it was not automatically switched to DIRECT policy. - Corrected the time error displayed in request logs for Ponte device requests. - Fixed a low probability crash that occurs when external policy group content changes. - During the initialization phase of Smart group, no longer display most used tags to avoid misunderstanding . - Fixed a crash that could occur when adding a policy group if an external policy was selected but no URL was provided. - Corrected an issue where items did not correctly display their storage location after being moved on the key management page. Official Channel: @SurgeTestFlightFeed

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #1120 · 25.04.2024 г., 03:08

#Mac#Release Version 5.7.0-2724 ### Smart Group This is a new type of policy group, driven by our carefully designed algorithm engine, which can automatically select the appropriate policy from the sub-policies of this policy group. The goal of the Smart policy group is to replace the original automatic testing groups (url/load-balance/fallback), greatly optimizing the experience while minimizing the need for manual intervention in policy groups. Users only need to put the available policies into this group. For details, see: https://kb.nssurge.com/surge-knowledge-base/guidelines/smart-group ### Rule System - Overall performance optimization of the rule system. - Significant optimization of the indexing algorithm in large domain rule sets, improving the search efficiency by more than ten times for rule sets with more than 100,000 rules. - Corrected the issue where sub-rules of logical rules within a rule set could not be covered by the no-resolve and extended-matching parameters of the rule set. - Added a new rule type DOMAIN-WILDCARD, supporting ? and * domain name matching. - DOMAIN-SET and RULE-SET are changed to strict validation. If there are invalid lines in the file, the entire rule set will be invalidated to avoid problems caused by misuse. ### IPv6 - The behavior of the ipv6-vif parameter has been modified. When set to always, IPv6 functionality will be enabled even if ipv6=true is not set. - Added a warning for the ipv6-vif=always parameter. - Adjusted the automatic retry mechanism. Accessing IPv6 addresses in a non-IPv6 network will no longer enter the retry process, and the request will fail immediately (solving the problem of some applications stalling when IPv6 VIF is enabled in a non-IPv6 environment, but the application will still continue to send IPv6 requests). ### Other Optimizations - Enhanced $notification.post, adding support for media resources, sound hints, and automatic dismissal. - Optimized WireGuard failure handling. - Reduced the power consumption of the TUIC protocol during sleep. - Improved the precision of time statistics in the request log system, now accurate to µs level. - Optimized various abnormal retry mechanisms, avoiding high resource usage caused by continuous retry in the face of some specific problems. For operations that need to be retried continuously (such as WireGuard reconnection, Ponte server reporting to iCloud), Surge will now retry after 0.1s, 0.5s, 1s, 5s, 10s, 30s after an error. - Optimized the caching system for external resources. - Added the profile line modifier #!REQUIREMENT. ### Minor Adjustments - Limited the length of logs that can be written to request notes in debug mode by scripts. - Changed the default UDP test target to 1.0.0.1. - If incorrect types of fields are passed when using API in scripts, it will result in script errors. - After the script is completed or times out, unfinished $httpClient will no longer call the callback function. ### Issue Fixes - Fixed the issue where the HTTP Body captured from remote devices could not be read in the Dashboard. - Fixed the problem where Header Rewrite rules could not match URLs based on the Host field. - Corrected the issue where ip-version and tos parameters could not take effect when testing proxies. - Fixed the crash issue caused by mistakenly passing null when executing scripts via HTTP-API.

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #989 · 29.03.2024 г., 02:34

#Mac#Release Version 5.6.0-2611 #### New Feature - Mock (Map Local) feature fully enhanced. - Added data types such as text, tiny-gif, base64 for inline direct data return. - Added status-code parameter - UI related configurations have not been updated yet. For usage methods, see the documentation: https://manual.nssurge.com/http-processing/mock.html - When the parameter encrypted-dns-follow-outbound-mode=true is configured, if a DoH/DoQ/DoH3 connection matches a proxy server using a domain name, and if there is a DNS Local Mapping record for that proxy server's domain name containing an IP address or traditional DNS server, then it is permissible to query through that proxy server. (Querying DNS through a proxy server will break CDN optimization, leading to severe slowness when loading images and videos. Unless there are very special requirements and it is not necessary to configure in this way, domain rules should be used to ensure requests are directly queried by the proxy server.) - Added feature Body Rewrite, see documentation for details: https://manual.nssurge.com/http-processing/body-rewrite.html- Added recognition for STUN packets, which can be matched using PROTOCOL,STUN. Similar to QUIC, to ensure compatibility, PROTOCOL,UDP can also continue to match STUN traffic. #### Enhancements - Optimized request logging. Now the specific rules matched for URL Rewrite and Header Rewrite will be displayed. - Adjusted the logic of how the DNS engine handles empty results. Now when multiple DNS servers are configured, it no longer waits for all servers to respond with empty results in order to avoid additional waiting when AAAA records do not exist. (However, since the behavior of DNS servers may vary in different environments, observe whether this change causes side effects; please provide feedback if issues arise causing abnormal results.) - Canceled warning notifications when ICMP exceeds limits ### Fixes - Enhanced compatibility when decompressing HTTP Body. - Fixed a crash in Surge caused by passing some incorrect types of parameters in scripts. - Adapted to new system restrictions, fixed the issue where selecting to display the main window is ineffective in some cases - Fixed compatibility issues with non-https WebSocket in proxy mode and the new version of Safari

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #975 · 02.03.2024 г., 14:21

#Mac#Release Version 5.5.0-2589 #### Module - Added several new official modules; official modules can now be dynamically updated. - Modules have a new classification field for convenient access and categorization in the UI. - Modules now accept parameter tables, supporting multiple parameters. Parameters will be used to modify module content through text replacement. #### Script - New script execution engine. Optimized execution performance and memory usage. - $httpClient has added several practical parameters. For more details on the updates above, see the documentation. #### Enhancements - New parameter: always-raw-tcp-keywords. For usage, refer to documentation. - Added SRC-PORT rule for matching client port numbers. - IN-PORT/SRC-PORT/DEST-PORT three rules are categorized as port number rule types, supporting three kinds of expressions: - Directly writing the port number, such as IN-PORT,6153 - Port number closed interval: such as DEST-PORT,10000-20000 - Using >, <, <=, >= operators, such as SRC-PORT,>=50000 - The UI can now maintain pure empty lines from original configurations after editing. ### Fixes - Corrected a detail issue with QUIC flow control and optimized latency performance for Ponte/TUIC/Hysteria2 protocols. - Other bug fixes.

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #973 · 02.03.2024 г., 11:58

#Mac#Release Version 5.5.0-2588 #### Module - Added several new official modules; official modules can now be dynamically updated. - Modules have a new classification field for convenient access and categorization in the UI. - Modules now accept parameter tables, supporting multiple parameters. Parameters will be used to modify module content through text replacement. #### Script - New script execution engine. Optimized execution performance and memory usage. - $httpClient has added several practical parameters. For more details on the updates above, see the documentation. #### Enhancements - New parameter: always-raw-tcp-keywords. For usage, refer to documentation. - Added SRC-PORT rule for matching client port numbers. - IN-PORT/SRC-PORT/DEST-PORT three rules are categorized as port number rule types, supporting three kinds of expressions: - Directly writing the port number, such as IN-PORT,6153 - Port number closed interval: such as DEST-PORT,10000-20000 - Using >, <, <=, >= operators, such as SRC-PORT,>=50000 - The UI can now maintain pure empty lines from original configurations after editing. ### Fixes - Corrected a detail issue with QUIC flow control and optimized latency performance for Ponte/TUIC/Hysteria2 protocols. - Other bug fixes.

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #971 · 02.03.2024 г., 04:17

#Mac#Release Version 5.5.0-2586 #### Module - Added several new official modules; official modules can now be dynamically updated. - Modules have a new classification field for convenient access and categorization in the UI. - Modules now accept parameter tables, supporting multiple parameters. Parameters will be used to modify module content through text replacement. #### Script - New script execution engine. Optimized execution performance and memory usage. - $httpClient has added several practical parameters. For more details on the updates above, see the documentation. #### Enhancements - New parameter: always-raw-tcp-keywords. For usage, refer to documentation. - Added SRC-PORT rule for matching client port numbers. - IN-PORT/SRC-PORT/DEST-PORT three rules are categorized as port number rule types, supporting three kinds of expressions: - Directly writing the port number, such as IN-PORT,6153 - Port number closed interval: such as DEST-PORT,10000-20000 - Using >, <, <=, >= operators, such as SRC-PORT,>=50000 - The UI can now maintain pure empty lines from original configurations after editing. ### Fixes - Corrected a detail issue with QUIC flow control and optimized latency performance for Ponte/TUIC/Hysteria2 protocols. - Other bug fixes.

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #933 · 09.12.2023 г., 03:00

#Mac#Release Version 5.4.3-2540 - Rewrote the virtual IP database, now the database can automatically clean up data based on the last time of use. - Fixed some issues that may occur when using Snell v4 with WireGuard and enabling reuse. - For DNS requests with illegal domain names, an empty result response will be generated instead of being directly ignored. - tun-included-routes and tun-excluded-routes parameters now supports IPv6 CIDR block when IPv6 VIF is enabled. - Support configuring no-resolve for built-in rule sets/Inline rule sets. - Surge Ponte connections no longer validate peer addresses to ensure normal operation in certain special scenarios. - Bug fixes.

Hashtags

Surge Mac's Changelog

@surgemacchangelog · Post #911 · 24.11.2023 г., 02:47

#Mac#Release Version 5.4.2-2502 - Fixed an issue that the built-in rule set LAN failed to correctly trigger DNS resolution. - Fixed an issue that could cause a crash when handling some malformed UDP packets. - Fixed an issue that the system that could potentially misjudge has been restarted, causing the Fake IP table to be cleared. - Compatible with some non-standard SOCKS5 UDP server implementations, adjusted errors to warnings. - Other bug fixes.

Hashtags

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