loud-stone-80561
10/30/2024, 1:32 AMfiftyone
). Changing the layout to loose
gave us about a 2x speedup (this is just a CLI we expect users to run locally), but sources may change quite a bit over the course of developmentbroad-processor-92400
10/30/2024, 2:57 AMlayout="packed"
to be the fastest to build, because it doesn't require manipulating hundreds/thousands of small files. There's some other tricks too, give me a second...broad-processor-92400
10/30/2024, 3:00 AM--no-pre-install-wheels
PEX argument via https://www.pantsbuild.org/stable/reference/targets/pex_binary#extra_build_args can improve performance too. Install https://github.com/pex-tool/pex and run --help
to see more about what that does.broad-processor-92400
10/30/2024, 3:02 AMpants run path/to/source.py
. This will separate the requirements and sources builds.
• A manual version of the above: have separate pex_binarys, one with include_sources=True, include_requirements=False
and vice versa, and then run with something like PEX_PATH=path/to/requirements.pex path/to/sources.pex ...
https://docs.pex-tool.org/api/vars.html#PEX_PATH (I've not done this, so not 100% sure how to make it work)wide-midnight-78598
10/30/2024, 3:10 AMpants run
?)
https://github.com/sureshjoshi/perfanity/tree/main
The BUILD file of note would be something like: https://github.com/sureshjoshi/perfanity/blob/main/multipex/BUILD
Again, noting that this is specifically for Docker, and not exactly what you're working onhappy-kitchen-89482
10/30/2024, 3:52 AMloud-stone-80561
10/30/2024, 5:00 PM