ycliper

Популярное

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

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

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

Топ запросов

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

Writing Faster Python 3 - presented by Sebastian Witowski

Автор: EuroPython Conference

Загружено: 2022-10-26

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

Описание: EuroPython 2022 - Writing Faster Python 3 - presented by Sebastian Witowski

[The Auditorium on 2022-07-14]


Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating memory for a bigger integer, can save you a couple milliseconds of code’s execution time. If you want to learn more about this kind of optimizations then, … well, probably this presentation is not for you :) Instead of going into such small details, I will talk about more “sane” ideas for writing faster code.

After a brief overview of different levels of optimization and how they work in Python, I will show you simple and fast ways of measuring the execution time of your code and finally, discuss examples of how some code structures could be improved.

You will see:

The fastest way of removing duplicates from a list
How much faster your code is when you reuse the built-in functions instead of trying to reinvent the wheel
What is faster than the “for loop”
If the lookup is faster in a list or a set
When it’s better to beg for forgiveness than to ask for permission

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License http://creativecommons.org/licenses/b...

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Writing Faster Python 3 - presented by Sebastian Witowski

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

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

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

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

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

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

Keynote: Killer Robots Considered Harmful - presented by Laura Nolan

Keynote: Killer Robots Considered Harmful - presented by Laura Nolan

Talk - Anthony Shaw: Write faster Python! Common performance anti patterns

Talk - Anthony Shaw: Write faster Python! Common performance anti patterns

Amazing Original Johnny Blaze Show Episode 86 w/ CATHLEEN IRELAND

Amazing Original Johnny Blaze Show Episode 86 w/ CATHLEEN IRELAND

What happens when you import a module? - presented by Reuven M. Lerner

What happens when you import a module? - presented by Reuven M. Lerner

How we are making Python 3.11 faster - presented by Mark Shannon

How we are making Python 3.11 faster - presented by Mark Shannon

Насколько быстро Python может обработать 1 миллиард строк данных?

Насколько быстро Python может обработать 1 миллиард строк данных?

Demystifying Python’s Internals - presented by Sebastiaan Zeeff

Demystifying Python’s Internals - presented by Sebastiaan Zeeff

Why Python 3.11 is so fast | Guido van Rossum and Lex Fridman

Why Python 3.11 is so fast | Guido van Rossum and Lex Fridman

Скомпилированный Python БЫСТРЫЙ

Скомпилированный Python БЫСТРЫЙ

Protocols in Python: Why You Need Them - presented by Rogier van der Geer

Protocols in Python: Why You Need Them - presented by Rogier van der Geer

How we are making CPython faster. Past, present and future — Mark Shannon

How we are making CPython faster. Past, present and future — Mark Shannon

When Python Practices Go Wrong - Brandon Rhodes - code::dive 2019

When Python Practices Go Wrong - Brandon Rhodes - code::dive 2019

The AI Factory: Infrastructure for Intelligence | Jensen Huang, CEO, NVIDIA

The AI Factory: Infrastructure for Intelligence | Jensen Huang, CEO, NVIDIA

Clean Architectures in Python - presented by Leonardo Giordani

Clean Architectures in Python - presented by Leonardo Giordani

Почему ваш код не соответствует Python (и как это исправить)

Почему ваш код не соответствует Python (и как это исправить)

Самый быстрый способ создания цикла в Python — горькая правда

Самый быстрый способ создания цикла в Python — горькая правда

Алгоритмы на Python 3. Лекция №1

Алгоритмы на Python 3. Лекция №1

Сделайте код Python в 1000 раз быстрее с помощью Numba

Сделайте код Python в 1000 раз быстрее с помощью Numba

`typing.Protocol`: type hints as Guido intended - presented by Luciano Ramalho

`typing.Protocol`: type hints as Guido intended - presented by Luciano Ramalho

Самая сложная модель из тех, что мы реально понимаем

Самая сложная модель из тех, что мы реально понимаем

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



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



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