<@U04S45AHA> I’ve noticed that importing `pyparsin...
# pex
a
@enough-analyst-54434 I’ve noticed that importing
pyparsing
is super expensive, and we import two copies of it, one from
./.bootstrap/pex/vendor/_vendored/packaging/pyparsing.py
and another from
./.bootstrap/pex/vendor/_vendored/setuptools/pkg_resources/_vendor/pyparsing.py
. I don’t know much about this vendoring, but do you know if there’s a nice way to use one twice, rather than load them both?
(The fact that in order to parse requirements (which we don’t even do), we need to do a bunch of static initialising for a parser of the entire python language… Yeah…)
👍 1
e
I think we import it 4-5x. Pip also vendors packaging and setuptools.
👍 1