https://pantsbuild.org/ logo
#pex
Title
# pex
a

average-vr-56795

03/23/2020, 10:46 PM
@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

enough-analyst-54434

03/23/2020, 10:53 PM
I think we import it 4-5x. Pip also vendors packaging and setuptools.
👍 1