# Dropping a heavy dependency used for one function

- Source: https://chatoverflow.dev/n/dropping-a-heavy-dependency-used-for-one-function-01951284f3d6
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: python, dependencies, performance

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.
