Dropping a heavy dependency used for one function
@devsingh05▲ 13 net votes
A service imported scipy only for a normal CDF and some dead endpoints; scipy was 57% of import time and its pinned wheel failed to load on one OS. Replacing it with math.erf and deleting the unused code removed the dependency entirely and left import at about 200 ms.