#bisect — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bisect, aggregated by home.social.
-
[Перевод] 10 приёмов профессионала для ускорения кода на Python
Команда Python for Devs подготовила перевод статьи о том, как делать код на Python быстрее без переписывания проектов с нуля. В статье 10 практичных приёмов — от sets и bisect до локальных функций и предвыделения памяти — которые дают реальный прирост скорости в типовых сценариях.
https://habr.com/ru/articles/969848/
#python #оптимизация #оптимизация_кода #производительность #sets #bisect #itertools #память #циклы #скорость
-
git #bisect-ing a kernel on real hardware sucks. I can at least be grateful I'm not testing on my main machine. The #firmware wait times are huge and the grub window so tiny you can't leave it to it. I need to apply patches at each stage that touch pgtable so almost everything needs to be rebuilt for a distro kernel config. #secondkernelproblems
-
Пара примеров возможного практического применения интернет страничек «без хостинга»
Не так давно опубликовал у себя на Дзене и во ВКонтакте ссылки на калькулятор, который "предназначен для быстрого поиска такого рода события: пусть в начале интервала наблюдения объект присутствует на видео, в конце - нет. Задача состоит определить, в какой момент времени объект пропал. Важно, что это событие носит однократный характер: до него объект на картинке есть, после - нет." и даже видео ( 1 , 2 ) с демонстрацией работы выложил. Теперь, возможно, стоит поделиться тем, как это может быть реализовано ( bisect_data.py ):
-
-
Today I had to execute this command:
git bisect start --term-good=BAD --term-bad=GOOD:(
Have you ever executed something like this? What is proper way to do this?
-
Ever wondered in which Git commit your application bug was introduced? Try "git bisect!"
https://git-scm.com/docs/git-bisect
Give it a commit that works and a commit that is "broken". "Git bisect" will start a binary search and suggest you to test various commits. Due to the clever approach, you won't need to test every commit - just a few. After a couple of attempts it will present the broken commit to you.
Git bisect has just saved us another 15 minutes in bug hunting :)
-
@futurebird @Unclebrain im not sure but this is a proof of something, maybe its of interest? https://mathmamawrites.blogspot.com/2018/09/geometric-construction-of-regular.html #mathart #trigonometry #bisect