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

Резултати

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

Пребарај: #tasks

当前筛选 #tasks清除筛选
BLC Market - mini-app BulCoin

@bulcoin_blc · Post #299 · 13.03.2026 г., 10:00

How the deal will be conducted in BLC Market We continue to showcase the interface of the upcoming BLC Market app. Today — how the deal between the client and the contractor will take place. When the client selects a contractor, a deal is created within the platform. The process looks like this: • the client creates a deal • funds are blocked within the platform • the contractor performs the work • after confirmation, the result is transferred to the client • funds are transferred to the contractor Such a system allows to protect both parties of the deal and reduce the risk of fraud. All calculations within the platform will be conducted using BLC without commission, or with the token chosen by the user, for a commission - which will go to the BLC liquidity pool. In the following posts we will show: • how the arbitration system works • what happens if a dispute arises • how users can protect their interests Early access to interface testing is granted to Pioneers participants. #tasks#freelance#deals

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #294 · 10.03.2026 г., 10:00

How the task search will work in BLC Market We continue to demonstrate the interface of the future BLC Market application. Today - how users will be able to find tasks and performers. The application will have a convenient search, where you can: • view available tasks • filter by categories • search by keywords • choose tasks by budget Each task will have a card with a description, price, and completion time. Performers will be able to quickly find suitable tasks and send their proposals to customers. This creates a full-fledged service market where customers and performers can interact directly. In the following posts, we will show: • how a deal is made within the platform • how deal protection works • how crypto-arbitrage will be arranged Early access to interface testing is given to Pioneers participants. #tasks#freelance#deals FAQ | BUY

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #287 · 09.03.2026 г., 11:30

How task creation will work in BLC Market We continue to showcase the interface of the future BLC Market app. Today - one of the key elements of the platform: task creation. A user will be able to post a task in just a few steps: • choose a category • describe the task • add photo or video - if needed • set the price, choosing the coin for payment • publish the task After publication, the task becomes available to performers who can offer their services. All transactions will take place within the platform using BLC. In the following posts, we will show: • what the performer's profile will look like • how arbitration will occur through the Association of Arbitration Courts • how the transaction system works Early access to the interface testing is given to Pioneers participants. #Tasks#BLC_Market#functionality FAQ | BUY

djangoproject

@djangoproject · Post #257 · 13.02.2017 г., 07:07

https://help.ubuntu.com/community/CronHowto #Cron is a system daemon used to #execute desired #tasks (in the background) at designated times. A crontab file is a simple text file containing a list of commands meant to be run at specified times. It is edited using the crontab command. The commands in the crontab file (and their run times) are checked by the cron daemon, which executes them in the system background.

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #319 · 29.03.2026 г., 10:00

How interaction will work in BLC Market The main idea is to eliminate unnecessary intermediaries. User: - creates a task - receives responses - chooses a contractor Everything happens within one interface. We make the mechanics as simple as possible to lower the entry barrier. #freelance#tasks#BulCoin#BLC#TON FAQ | BUY

djangoproject

@djangoproject · Post #597 · 24.04.2018 г., 02:46

Asynchronous #celery celeryproject.org Distributed task queue. #flower pypi.python.org/pypi/flower Tool for monitoring and management of Celery tasks. #django-channels pypi.python.org/pypi/django-channels Official Django websockets interface, can also be used as task queue. #rq pypi.python.org/pypi/rq RQ is a simple, lightweight, library for creating background jobs, and processing them. #django-rq pypi.python.org/pypi/django-rq A simple app that provides django integration for RQ (Redis Queue). #django-background-#tasks github.com/arteria/django-background-tasks Database backed asynchronous task queue.

djangoproject

@djangoproject · Post #519 · 10.12.2017 г., 18:14

https://blog.wallaroolabs.com/2017/12/stateful-multi-stream-processing-in-python-with-wallaroo/ #Wallaroo is a high-performance, open-source framework for building distributed stateful applications. In an earlier post, we looked at how Wallaroo scales #distributed_state. In this post, we’re going to see how you can use Wallaroo to implement multiple data processing #tasks performed over the same shared #state. We’ll be implementing an application we’ll call “Market Spread” that keeps track of the latest pricing information by stock while simultaneously using that state to determine whether stock order #requests should be rejected. #pipeline

djangoproject

@djangoproject · Post #262 · 16.02.2017 г., 07:24

http://masnun.com/2015/11/20/python-asyncio-future-task-and-the-event-loop.html On any platform, when we want to do something #asynchronously, it usually involves an #event loop. An event loop is a loop that can register #tasks to be executed, execute them, delay or even cancel them and handle different events related to these operations. Generally, we #schedule multiple async functions to the event loop. The loop runs one function, while that function waits for #IO, it pauses it and runs another. When the first function completes IO, it is resumed. Thus two or more functions can #co_operatively run together. This the main goal of an event loop.

djangoproject

@djangoproject · Post #107 · 02.08.2016 г., 15:22

https://github.com/python/asyncio The #asyncio#module provides infrastructure for writing #single-threaded concurrent code using #coroutines, #multiplexing#I/O access over sockets and other resources, running network clients and servers, and other related primitives. Here is a more detailed list of the package contents: a pluggable event loop with various system-specific implementations; transport and protocol abstractions (similar to those in Twisted); concrete support for TCP, UDP, SSL, subprocess pipes, delayed calls, and others (some may be system-dependent); a Future class that mimics the one in the concurrent.futures module, but adapted for use with the event loop; #coroutines and #tasks based on yield from (PEP 380), to help write concurrent code in a sequential fashion; cancellation support for Futures and coroutines; synchronization primitives for use between coroutines in a single thread, mimicking those in the #threading module; an interface for passing work off to a threadpool, for times when you absolutely, positively have to use a library that makes blocking I/O calls. Note: The implementation of asyncio was previously called "Tulip".

12
ПретходнаСтраница 1 од 2Следна