У нас вы можете посмотреть бесплатно How to profile slow code in Python или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video we look at an interesting use case we stumbled upon the other day, a Bite submission that timed out. We first look at which of the functions is slow using a timer decorator. When we pinpointed the slow function we look at where exactly in this function the most time is spent / calls are made. It becomes soon apparent that it's an expensive operation in a for loop. Hopefully this video helps you whenever you are hit with slow code. Used decorators are here: https://gist.github.com/pybites/ca513... Also check out mentioned useful profiling context manager here: https://docs.python.org/3/library/pro... ---------------------------- Subscribe to the channel!: http://www.youtube.com/c/pybites?sub_... ---------------------------- There's plenty more to discover with PyBites: Check out our Python tips book: https://pybit.es/tips You can also subscribe to receive weekly Python / Career / Mindset tips straight to your inbox here: https://codechalleng.es/tips To work with us 1:1 to develop that complex project you've always wanted to build, check out our coaching program: https://pybit.es/catalogue/the-pdm-pr... If you'd prefer to listen to us on the go, we discuss the mindset crucial for a successful developer on our podcast: https://www.pybitespodcast.com/ Visit us at https://pybit.es to find out how we can help you on your Python journey. Also we'd love to hear what you want more training and content on, just comment below or send us an email at info at pybit.es!