How python optimizes integers? смотреть онлайн
In this video, we answer, How python optimizes integers? Does it cache them? We go through the CPython source code to find out the exact internals of it.
Chapters:
0:00 Introduction to integer optimization
1:59 Going through the CPython code and tracing the function
2:41 Going through PyLong_FromLong
3:39 Understanding IS_SMALL_INT
5:13 Understanding get_small_int
8:47 How Python initializes the cache of integers?
12:07 Where all Python is reusing small integers?
14:45 Why Python caches integers?
Link to essays and articles:
https://arpitbhayani.me/blogs/python-caches-integers
https://arpitbhayani.me/blogs/super-long-integers
# The Honest Python
The Honest Python is a series in which we dissect certain features, behaviors, and not-so-obvious outputs by diving deeper into the CPython source code and if possible altering it to get a much clearer understanding.
# Arpit's System Design Masterclass
I teach an 8-week cohort-based course on System Design - a masterclass that helps you become great at designing systems that are scalable, fault-tolerant, and highly available.
The program will have a blend of Live Classes happening on Weekends, 1:1 Mentorship sessions happening on weekdays, assignments and, group projects. The program is designed to be intense and crisp so as to accelerate the overall learning.
You can find more details about the program at https://arpitbhayani.me/masterclass
### Subscribe to my free newsletter
? Once a week, in your inbox, an essay about programming languages internals, or a deep dive on some super-clever algorithm, or just a few tips on building highly scalable distributed systems.
https://arpitbhayani.me/newsletter
If my work adds value, consider supporting me: https://www.buymeacoffee.com/arpitbhayani
### Follow me on other social platforms
Github: https://github.com/arpitbbhayani
LinkedIn: https://linkedin.com/in/arpitbhayani
Twitter: https://twitter.com/arpit_bhayani
#TheHonestPython
Stay Awesome,
Arpit
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How python optimizes integers?» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.