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

Резултати

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

Пребарај: #denpasar

当前筛选 #denpasar清除筛选
Bali News

@balinews · Post #197 · 03.10.2024 г., 13:48

🗑️Garbage collection rules are changing in Bali from October 1 📆 Non-organic waste from the Bali capital will be taken out every Tuesday, Friday and Sunday. On the other days – Monday, Wednesday, Thursday and Saturday – special vehicles will pick up organic waste. ♻️ Sorting is now mandatory. Otherwise, the garbage simply will not be taken out. This rule came into effect on October 1, 2024, following a decision by the Denpasar city government and the Department of Environment and Hygiene. @BaliNews #laws#Denpasar

Bali News

@balinews · Post #32 · 01.05.2024 г., 14:24

🦟The number of dengue cases in Denpasar has risen eightfold The number of confirmed dengue cases in Denpasar has risen sharply. While 34 cases were reported in January 2024, 42 cases in February, and 122 cases in March, preliminary data shows 248 cases in April. The increase in morbidity is 8! times. Compared to April last year, this indicator has also increased significantly. Then dengue was confirmed among 186 people. In areas where the sick people are detected, the specialists conduct treatment against mosquitoes - they spray insecticides. @BaliNews #health#Denpasar

Bali News

@balinews · Post #458 · 09.07.2025 г., 11:50

📰World-class health and beauty center opens in Bali 💉 A new health and beauty center, Ngoerah Sun Wellness and Aesthetic, has opened in Bali. It is a clinic with fully digital processes. In partnership with South Korea's Sun Medical Center, it combines check-ups, dermatology, plastic surgery, and dentistry, including “one-day” veneers. ↗️ The facility has already treated hundreds of foreign patients and aims to keep Indonesians from traveling abroad. The project is poised to become a new driver of medical tourism and the island's economy. #places#health#Denpasar@BaliNews

Bali News

@balinews · Post #148 · 21.08.2024 г., 11:47

🪧Bali airport workers have gone on a three-day strike 📰 Workers at Bali's Ngurah Rai airport have gone on strike. They held a peaceful protest at the motorcycle parking lot. 📄 The reason for the strike, which will last three days, was a problem with labor contracts. Despite the participation of about 250 people in the strike, the operation of the air harbor continues as usual. @BaliNews #airport#Denpasar#Kuta

Bali News

@balinews · Post #144 · 17.08.2024 г., 03:15

🚇Sanur and Jimbaran will be connected by an underground tunnel 📰 Bali authorities have warned that locals and visitors to the island should prepare for increased traffic jams in September. The reason for this is road construction on several major highways at once. This includes the construction of the long-awaited Bali urban railroad network. 🛩 The second phase of the project will be a ring line connecting Bali Airport with the center of Denpasar and the resort of Sanur. 🕒 Authorities are unable to give further details at the moment, but say they want to create an ambitious project that will solve the traffic problem between Sanur and Jimbaran as soon as possible. @BaliNews #roads#Sanur#Denpasar

Bali News

@balinews · Post #128 · 28.07.2024 г., 03:01

🏚Fire destroys 19 villas in Seminyak 📰 Detikbali reports the the blaze broke out overnight on Kayu Aya Street in the Amasya villa complex. The fight against the fire continued into the morning. The flames were so big that they were seen even from airplanes arriving in Bali. 🎍 Apparently, the reason is that the complex is mostly built in eco-style, a lot of materials such as bamboo and straw were used in the decoration and construction, and they are known to burn well. 💸 Damage from the fire is estimated at 12 billion rupees. 👮‍♂️ Ketut Sukadi, a spokesman for Denpasar police's public relations department, said: “The fire first appeared on the second floor of villa 9 of The Amasya Villas complex, then spread to villa 12. A total of 19 villas out of 20 were burned in the fire, only villa 5 was not burned.” There are no official reports on the cause of the fire or other details yet, authorities are still investigating the incident. @BaliNews #accidents#Seminyak#Denpasar

Bali News

@balinews · Post #126 · 25.07.2024 г., 13:56

🪧The Balinese public has spoken out against the new beach club in Sanur 🙅‍♂️ No sooner have locals gotten used to the new shopping center in Sanur, now they have to defend the beach as well. Bali Icon Mall opened in June 2024, but not completely - the promised beach club was decided to be completed later. This construction is what the Balinese people oppose. 📰 The population fears that this development could affect the people who choose Sanur as their vacation destination. And if noisy young people flock here, pensioners and families with children may not like it, reports detikbali. @BaliNews #beaches#Sanur#Denpasar

Bali News

@balinews · Post #305 · 29.01.2025 г., 12:25

➰Bali has started to take cables underground 📰 Utilities in Bali province have begun laying underground cables in Denpasar, with 10 streets to be involved in the first phase of this massive project. 👍 The removal of overhanging wires should help organize the chaotic provider communications that spoil the appearance of the city. 🚧 Laying the networks underground will result in the closure of some streets in Denpasar for the duration of the work from Gajah Mada Street to Simpang Tamrin. Then from Veteran Street north to Nangka Selatan Street to the Gatsu-Nangka intersection. Work will also be carried out on the section of Patimura Street to the GOR Ngurah Rai T-junction. Also from Chatur Muk east towards Surapati Street to the traffic light intersection. @BaliNews #goodnews#Denpasar#roadclosures

Bali News

@balinews · Post #181 · 21.09.2024 г., 08:15

🏖Bali beach reconstruction: Batu Belig is being transformed 📰 The reconstruction of Kuta and Legian beach continues and has already reached Batu Belig. Due to high waves and periodic tides, the southwest coast of Bali is gradually eroding. To combat this problem, the Badung District Government has started reconstruction. 👍 Measures include the construction of a new walkway and other infrastructure improvements. @BaliNews #goodnews#beaches#Kuta#Denpasar

Bali News

@balinews · Post #82 · 10.06.2024 г., 10:00

🛍The new Icon Bali shopping centre has finally opened in Sanur Many people had heard about Icon Bali long before it opened. Local journalists, talking about what an amazing project awaits us, said that it would outshine even the largest mall on the island Living World, because it will have the largest floating market in Southeast Asia and other unique entertainment, in addition to shops, of course. The opening date has been postponed at least twice. First they planned to launch in April, then they put the date in May, but in those days the building was not even externally ready. And now, finally, on the 7th of June, the opening took place. 8 Wonders of Icon Bali is a special feature that the mall is proud of, nevertheless the whole project still look quite raw. @BaliNews #wheretogo#places#events#Sanur#Denpasar#Ubud