Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Andrew Montalenti: Beating Python's GIL to Max Out Your CPUs

Автор: PyData

Загружено: 2015-12-04

Просмотров: 10344

Описание:

PyData NYC 2015

Among the #1 complaints of Python in a data analysis context is the presence of the Global Interpreter Lock, or GIL. At its core, it means that a given Python program cannot easily utilize more than one core of a multi-core machine to do computation in parallel. However, fear not! To beat the GIL, you just need to be willing to adopt a little magic -- and this talk will tell you how.

Beating Python's Global Interpreter Lock starts with a recognition of a searing reality: that no matter how many multi-core machines exist, most CPU-heavy computation tasks will max out even the cores available on a given large box. Once you come to terms with this fact, you realize what you actually want isn't multi-core computation, but multi-core / multi-node computation. That is, cluster-scale computing.

To illustrate multi-core vs multi-node, we'll contrast Python's standard library concurrent.futures module to the IPython.parallel framework. The former allows you to go multi-core to beat the GIL, with some caveats. But the latter lets you go multi-node.

We'll then explore what makes multi-node computation difficult, and illustrate it with a small Python program that reads a fast-moving data stream and processes it in parallel, using pykafka and Apache Kafka to provide the data stream.

Finally, we'll explore the open source frameworks that have finally "defeated" the cluster computing challenge for Python. These are Apache Storm and Apache Spark. They each have different designs -- and different Python integration options -- but their architectures are fascinating. The good news is, as of 2015, each of these frameworks has a high-quality, production-quality Python API, including one written by the presenter and his team!

You'll leave this talk with the satisfaction that whether you need to use 2 cores, 8, 32, or even 10,000 cores across hundreds of machines, you'll have a technology available and the understanding necessary to make it happen.

Never let being CPU-bound be a bottleneck for your next great data exploration or scientific computing challenge! Attend this talk to beat Python's GIL not with a CPython fork, not with a PyPy STM implementation, but instead with old-fashioned distributed computation!

Slides available here: http://www.slideshare.net/pixelmonkey... 00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.

Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: https://github.com/numfocus/YouTubeVi...

Andrew Montalenti: Beating Python's GIL to Max Out Your CPUs

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

David Beazley - Python Concurrency From the Ground Up: LIVE! - PyCon 2015

David Beazley - Python Concurrency From the Ground Up: LIVE! - PyCon 2015

Пет-проект на Python за 50 минут. Курс по FastAPI для начинающих

Пет-проект на Python за 50 минут. Курс по FastAPI для начинающих

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

LLM и GPT - как работают большие языковые модели? Визуальное введение в трансформеры

David Beazley - Die Threads

David Beazley - Die Threads

Fear and Awaiting in Async: A Savage Journey to the Heart of the Coroutine Dream

Fear and Awaiting in Async: A Savage Journey to the Heart of the Coroutine Dream

A  Jesse Jiryu Davis   Grok the GIL Write Fast And Thread Safe Python   PyCon 2017

A Jesse Jiryu Davis Grok the GIL Write Fast And Thread Safe Python PyCon 2017

Ilana Makover: Let Your Data Tell Its Story | PyData Tel Aviv 2025

Ilana Makover: Let Your Data Tell Its Story | PyData Tel Aviv 2025

Losing your Loops Fast Numerical Computing with NumPy

Losing your Loops Fast Numerical Computing with NumPy

Делаем графические процессоры по-настоящему быстрыми: глубокий анализ эффективности тренировок

Делаем графические процессоры по-настоящему быстрыми: глубокий анализ эффективности тренировок

RAG | ВСЁ, что тебе нужно знать (+ 11 Продвинутых стратегий)

RAG | ВСЁ, что тебе нужно знать (+ 11 Продвинутых стратегий)

Ned Batchelder - Facts and Myths about Python names and values - PyCon 2015

Ned Batchelder - Facts and Myths about Python names and values - PyCon 2015

PyCon 2015 - Python's Infamous GIL by Larry Hastings

PyCon 2015 - Python's Infamous GIL by Larry Hastings

Python Multiprocessing Tutorial: Run Code in Parallel Using the Multiprocessing Module

Python Multiprocessing Tutorial: Run Code in Parallel Using the Multiprocessing Module

ВСЕ ЧТО НУЖНО ЗНАТЬ О ДЕПЛОЕ, DOCKER, CI/CD, ЕСЛИ ТЫ НОВИЧОК

ВСЕ ЧТО НУЖНО ЗНАТЬ О ДЕПЛОЕ, DOCKER, CI/CD, ЕСЛИ ТЫ НОВИЧОК

David Beazley | Keynote: Built in Super Heroes

David Beazley | Keynote: Built in Super Heroes

Функциональное программирование на Python: параллельная обработка с помощью «concurrent.futures»

Функциональное программирование на Python: параллельная обработка с помощью «concurrent.futures»

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

Thinking about Concurrency, Raymond Hettinger, Python core developer

Thinking about Concurrency, Raymond Hettinger, Python core developer

Understanding the Python GIL

Understanding the Python GIL

Дорога к Гуляйполю, «Стратегия» Залужного и база ВМФ в Судане

Дорога к Гуляйполю, «Стратегия» Залужного и база ВМФ в Судане

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]