Тёмный

Anjana Vakil - Exploring Python Bytecode 

EuroPython Conference
Подписаться 33 тыс.
Просмотров 24 тыс.
50% 1

Anjana Vakil - Exploring Python Bytecode
[EuroPython 2016]
[20 July 2016]
[Bilbao, Euskadi, Spain]
(ep2016.europython.eu//confere...)
Do you ever wonder how your Python code looks to the interpreter? What
those `.pyc` files are? Why one program outperforms another, even if
the code is similar? Then let’s dive into Python bytecode! Bytecode is
the "intermediate language" that expresses your source code as machine
instructions the interpreter can understand. In this talk we’ll see
what role it plays in executing Python programs, learn to read it with
the `dis` module, and analyze it to better understand a program’s
performance.
-----
Do you ever wonder what your simple, beautiful Python code looks like
to the interpreter? Are you starting to get curious about those `.pyc`
files that always pop up in your project, and you always ignore? Would
you like to start investigating your Python code's performance, and
learn why some programs you write run faster than others, even if the
code looks more or less the same? Have you simply fallen so completely
in love with Python that you're ready to peer deep inside its soul?
If you, like me, answered "yes" to any of these questions, join me in
an illuminating adventure into the world of Python bytecode! Bytecode
is the "intermediate language" that expresses your Python source code
as machine instructions the interpreter (specifically CPython, the
"standard" interpreter) can understand. Together we'll investigate
what that means, and what role bytecode plays in the execution of a
Python program. We'll discover how we simple humans can read this
machine language using the `dis` module, and inspect the bytecode for
some simple programs. We'll learn the meaning of a few instructions
that often appear in our bytecode, and we'll find out how to learn the
rest. Finally, we'll use bytecode to understand why a piece of Python
code runs faster if we put it inside of a function.
When you go home, you'll be able to use bytecode to get a deeper
understanding of your Python code and its performance. The adventure
simply starts here; where it ends is up to you!

Наука

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@lezwon
@lezwon 3 года назад
Wow. this talk was really helpful. Got a lot of my confusion cleared. Thanks, Anjana. \m/
@DaniEIdiomas
@DaniEIdiomas 7 лет назад
This has been an incredibly useful video to take notes from. Thanks for the presentation and uploading the video!
@tekenateifranklyn3922
@tekenateifranklyn3922 Год назад
Thank you so much Anjana, you've just clear my doubt on python bytecode and the dis method.
@MrMultikopi
@MrMultikopi 3 года назад
Anjana is the best. Love her.
@AlejandroVillamarin
@AlejandroVillamarin 7 лет назад
Shame I missed it on the Conference...this is just great!
@ibrahimk6729
@ibrahimk6729 4 года назад
Thanks for the talk,
@samshanmukh
@samshanmukh 7 лет назад
that was really nice and important.
@victortrevino6330
@victortrevino6330 7 лет назад
Great talk. :thumbsup:
@arjunkirpal9776
@arjunkirpal9776 6 лет назад
Awesome
@cavink5342
@cavink5342 5 лет назад
good presentation
@sntshkmr60
@sntshkmr60 7 лет назад
Love you Anjana!
@yashsvidixit7169
@yashsvidixit7169 2 года назад
I'm here only because of Anjana ❤️
@myronww
@myronww 5 лет назад
The reason the return did not show up with a line number is because you used an implied return. If you put an actual line of code at the end of your function with a return, it will get a line of code. FYI, if there is a line of code you can hang a breakpoint on return
@tanphamnhat804
@tanphamnhat804 7 лет назад
i dont understand what she said but i really love her
@gowthamtech4109
@gowthamtech4109 5 лет назад
I like your speech anjana😍
@mohmutakin791
@mohmutakin791 2 года назад
Any tool to fast back modul dis to bytecode
@nononnomonohjghdgdshrsrhsjgd
@nononnomonohjghdgdshrsrhsjgd 2 года назад
she nerves as hell
@rajdep561
@rajdep561 5 лет назад
It's a waste of time
@sawajaysharma
@sawajaysharma 3 года назад
Why?
Далее
Try not to Laugh Game!
00:38
Просмотров 7 млн
Sebastian Witowski - Writing faster Python
24:10
Просмотров 99 тыс.
The Power Of The Plugin Architecture In Python
24:06
Просмотров 111 тыс.
CPython internals and the VM
33:56
Просмотров 8 тыс.
Transforming Code into Beautiful, Idiomatic Python
48:51
Memory Management in Python - The Basics
30:27
Просмотров 34 тыс.
899$ vs 360$ which one will you choose ? #iphone #poco
0:18
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 393 тыс.
Самый дорогой кабель Apple
0:37
Просмотров 343 тыс.