summaryrefslogtreecommitdiff
path: root/eclass/pypi.eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-15 14:29:55 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-17 12:10:15 +0200
commit4d7804af0ce9077cbc53cda7318a3e388db8dbb3 (patch)
tree20f3f5ae466e9fe6a30da7ca62312dd0eba7bf02 /eclass/pypi.eclass
parent746642aec3f9380f44bff3c5e8b79acfb105af6b (diff)
downloadgentoo-4d7804af0ce9077cbc53cda7318a3e388db8dbb3.tar.gz
gentoo-4d7804af0ce9077cbc53cda7318a3e388db8dbb3.tar.bz2
gentoo-4d7804af0ce9077cbc53cda7318a3e388db8dbb3.zip
python-utils-r1.eclass: Use @a instead of declare check for array
Use bash 5's @a variable substitution instead of `declare -p` check to determine if `PYTHON_COMPAT` is an array. This avoids a subshell, and effectively makes the function roughly 3.5x faster: ``` * Timing _python_set_impls real 4854 it/s user 4862 it/s ``` In practice, this roughly reduces total sourcing time for `dev-python/*` from 57-58 s to 54 s. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/31454 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/pypi.eclass')
0 files changed, 0 insertions, 0 deletions