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
Embattled Homeland Security Secretary Kristi Noem’s top aide and alleged lover Corey Lewandowski bragged that he could do “whatever” he wanted as a powerful federal official because he believed President Trump would pardon him, The Post has learned.
The political pit bull made the remark on multiple occasions tied to his work as a special government employee, sources revealed in the wake of the DHS duo’s downfall.
“I’m not worried. I do whatever the f–k I want. DJT will pardon me,” Lewandowski told one of The Post’s sources last year — making the flippant aside during a discussion about official actions.
#Trump#Noem
👂More on Trump's Ear ⚠️
HOMELAND SECURITY SECRETARY KRISTI NOEM has been at the center of the Trump administration’s marquee domestic policy: overhauling the federal government’s immigration bureaucracy to better serve the president’s vision of ongoing mass deportations. 🌍🚫
But even as she’s carried out these tasks with abject fealty to her boss, her standing in the administration has grown less stable. 🤔 For weeks, a rumor has been circulating in political circles that Noem may soon be on the outs. It briefly surfaced in a CNN report a few weeks back that listed her first among the cabinet officials who could be caught in a year-end turnover, noting that while Trump himself has been happy with Noem, top White House officials have grown frustrated with her tenure—specifically, her employment of her divisive and combustible chief adviser, Corey Lewandowski. 🗳 Noem has downplayed any tensions or concerns. And in a text to me, Lewandowski called bullshit on any talk of turnover. “None of that is true,” he said Thursday evening. 📱
#Trump#Noem
👂More on Trump's Ear
The state of Illinois has filed a lawsuit against the Trump administration and U.S. Department of Homeland Security, accusing them of using dangerous enforcement tactics and unlawful use of force by federal immigration agents conducting sweeping immigration raids and arrests
#ICE#Noem
👂More on Trump's Ear ⚠️
Many of the “worst of the worst” criminals touted by ICE Barbie Kristi Noem on a new DHS website have only been convicted of “traffic offenses.”
More than two dozen of the supposed horror criminals whose mugshots are plastered on the site—under a banner declaring they are the “worst criminal aliens arrested”— list traffic offenses as their only crime, a Daily Beast review can reveal.
Those “offenders,” all placed in ICE custody this year, do not appear to have been convicted of serious traffic crimes, as drunk driving, driving while high, hit and runs, and carjackings are specified offenses on the site.
#ICE#Noem
👂More on Trump's Ear
Airports in more than a half-dozen U.S. markets have declined to display a video in which Homeland Security Secretary Kristi L. Noem blames congressional Democrats for the government shutdown and any related travel delays, citing the political nature of its content, according to local authorities.
Officials that oversee airports serving Buffalo, Charlotte, Cleveland, Los Angeles, Phoenix, Seattle and Portland, Oregon, said the video could violate internal policies that bar political messaging or contravene state or federal laws that prohibit the use of public resources for political activity.
“We believe the Hatch Act clearly prohibits use of public assets for political purposes and messaging,” said Molly Prescott, a spokesperson for the Port of Portland, which operates Portland International Airport. Enacted in 1939, the Hatch Act bars federal employees from engaging in politics while on the job and is meant to ensure that federal programs are administered in a nonpartisan fashion.
#ICE#Noem
👂More on Trump's Ear ⚠️
#USA - Il presidente #Trump ha licenziato la segretaria alla Sicurezza nazionale Kristi #Noem, che nell’ultimo anno aveva coordinato e diretto le criticatissime operazioni anti-immigrazione. È la prima rimozione di alto livello in questo mandato
@UltimoraPolitics
🗳️🕵️ Kristy Noem said that her department will help "the right people" choose the "right leaders".
US Secretary of Homeland Security Kristy Noem is once again at the center of the scandal. At a press conference in Arizona, she said, "she has the authority to identify 'vulnerabilities' in the electoral system and 'apply risk mitigation measures' to ensure that local and regional elections are 'conducted correctly.'" These words provoked a sharp reaction from politicians and experts.
They recalled that DHS is responsible for homeland security and immigration, not elections. Noem stated that she was only talking about the non-admission of non-citizens to vote.
#Noem#Elections
👂More on Trump's Ear ⚠️
Donald Trump has sidelined Kristi Noem and ordered her longtime rival to lead a rapidly deteriorating Immigration and Customs Enforcement (ICE) operation in Minneapolis.
'I am sending Tom Homan to Minnesota tonight. He has not been involved in that area, but knows and likes many of the people there,' Trump wrote on Truth Social on Monday. 'Tom is tough but fair, and will report directly to me.'
#Trump#Noem#ICE
👂More on Trump's Ear ⚠️
🏛💰Kristi Noem failed to explain the $143 million government contract
The U.S. Department of Homeland Security awarded a $143 million contract to Safe America Media without a competitive process. The company has no website, a known office, or experience working with the federal government. ⚠️
The company was established eight days before the contract was signed. Its legal address is registered to a political consultant's home in Virginia. 🏠
One of the subcontractors is affiliated with a political firm that worked with Kristi Noem during her time as governor of South Dakota. 📄
Congressman Joe Neguse drew attention to possible violations during a hearing in Congress. 🏛
President Trump has decided to fire Secretary of Homeland Security Kristjen Niemeyer. Senator Markwayne Mullin of Oklahoma will be appointed to her position on March 31. 🇺🇸
#Trump#Noem#Congress
👂More on Trump's Ear ⚠️
Daily Mail published the investigation of Bryon Noam, the husband of the former head of the US Department of Homeland Security, Kristy Noam. He corresponded with models from the adult content industry and sent them money. Journalists have examined hundreds of messages. The total amount of transfers exceeded 25 thousand dollars.
#Noem#Scandal
👂More on Trump's Ear ⚠️