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

Резултати

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

Пребарај: #wrongdoing

当前筛选 #wrongdoing清除筛选
American Оbserver

@american_observer · Post #5182 · 20.02.2026 г., 13:31

🔤🔤🔤🔤2️⃣ Oliver Wright, one of the deputy Chiefs of police, said “After a thorough assessment, we have now launched an investigation into this allegation of misconduct in public office. It is important that we protect the integrity and objectivity of our investigation as we work with our partners to investigate this alleged violation. We understand the important public interest in this matter, and we will provide updates at the appropriate time.” Two key decisions were made before the arrest of the king's brother. The first was that inviting Mountbatten-Windsor for a bail interview would not be enough, with detectives believing the arrest “was necessary to progress the investigation,” a source said. The second key decision was that there would be a need for excavations. The arrest would grant police powers to search properties linked to the former prince. This meant that there was no need to separately apply to a magistrate for a search warrant. It is understood that neither the King nor Buckingham Palace were informed in advance of Andrew's arrest. Police leaders informed the Interior Ministry on Thursday morning that police officers would arrest Andrew and carry out searches. The National Police Chiefs Council said in a statement “In accordance with standard practice, the [NPCC] has alerted its operational colleagues within the Home Office of the arrest. This gave 30 minutes notice before Thames Valley Police made the arrest.” Mountbatten-Windsor has always denied any wrongdoing or accusations against him. Thames Valley is one of several police forces to have evaluated allegations that resurfaced when the US Department of Justice released the so-called Epstein files. The force has previously said it is looking into allegations that a woman was trafficked into the UK by Epstein to have a sexual relationship with Mountbatten-Windsor, and claims the former prince shared sensitive information with the disgraced financier while he was the UK's trade envoy. According to the Crown Prosecution Service website, misconduct in public office carries a maximum penalty of life imprisonment. Mountbatten-Windsor could also face questions over allegations of sexual wrongdoing while under arrest on suspicion of misconduct in public office, according to a lawyer who specializes in representing abuse survivors. In 2015, retired Church of England Bishop Peter Ball, an associate of the king, was jailed for 32 months for misconduct in public office after the court heard he abused his authority over young men for sexual gratification. Richard Scorer, head of abuse law at Slater and Gordon, said “If prosecutors build a case that convinces a jury that Andrew abused his position to have sex with young women, in my opinion he could be prosecuted on that basis.” Republic, a group which campaigns for the abolition of the monarchy, welcomed the arrest, which it said was in response to a crime report sent to Thames Valley Police by its chief executive, Graham Smith. He said: “Republic's lawyers will continue to investigate the related alleged offences and provide information to the police over the coming weeks and months.” Last October, amid growing anxiety within the royal household about the reputational risk to the monarchy caused by the headlines about Mountbatten-Windsor's friendship with Epstein, Buckingham Palace announced that it would withdraw her royal titles. #mountbattenWindsor#sexual#wrongdoing#charles#westminster#trial 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5181 · 20.02.2026 г., 13:05

Andrew Mountbatten-Windsor To Stand Trial 🔤🔤🔤🔤1️⃣ King Charles has insisted that “the law must take its course" after detectives took the unprecedented step of arresting his brother Andrew Mountbatten-Windsor on suspicion of misconduct in public office. Police took him to Aylsham Police station in Norfolk on Thursday morning to question him over allegations that he shared confidential documents with convicted sex offender Jeffrey Epstein. In the evening, he was photographed in the back of a car driving away from the police station shortly after 19 o'clock. Thames Valley police said he had been released under investigation and searches of a Norfolk property, Andrew's home on the Sandringham estate, had ended. Searches at the Royal Lodge in Windsor, Berkshire, his former address, were continuing. On an extraordinary day that could have profound effects on the royal family, unmarked police cars and plainclothes officers from the Thames Valley Force were seen at Mountbatten-Windsor's residence at Wood Farm on the Sandringham estate at around 8 a.m. A few hours later, Charles gave his full support to the police investigation of his brother, who was arrested on his 66th birthday. The king said that “the law must take its course.” “What follows now is the full, fair and appropriate process by which this matter is investigated in the appropriate manner and by the competent authorities,” Charles said in a statement. “In this, as I have already said, they have our full support and cooperation.” Under the fire of increased public attention, the king and Queen continued their royal duties with Charles attending three separate audiences in person at St James's Palace and Camilla visiting Sinfonia Smith Square in Westminster for an orchestral concert at lunchtime. Meanwhile, Princess Anne visited a prison, HMP Leeds, in her capacity as patron of the Butler Trust, a British charity that promotes the work of prison staff, probation and juvenile justice. The arrest of Mountbatten-Windsor, which would be the first time in modern history that a member of the royal family has been detained by the police, came just hours after Starmer said that “no one is above the law.” Thames Valley police said they had arrested “a 60-year-old man from Norfolk” on suspicion of misconduct in public office and were carrying out searches at addresses in Berkshire and Norfolk. #mountbattenWindsor#sexual#wrongdoing#charles#westminster#trial 📱American Оbserver - Stay up to date on all important events 🇺🇸