Michał Górny 12ab6ca3d6 cargo.eclass: Optimize GIT_CRATES check
Optimize the GIT_CRATES check to call `declare -p` only if the variable
is actually set.  In the vast majority of ebuilds using cargo.eclass,
it's not set, so the subshell-first approach is slowing things down.
With this change, the speed improves by another ~20%:

```
real  363 it/s
user  365 it/s
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-06-18 16:57:45 +02:00
2023-06-03 07:23:32 +02:00
2023-06-11 11:22:27 +03:00
2023-06-14 17:53:08 +01:00
2023-06-12 20:10:42 +01:00
2023-06-15 22:51:13 +01:00
2023-06-01 22:40:11 +02:00
2023-06-08 12:50:16 +02:00
2023-06-16 21:59:08 +07:00
2023-06-18 13:20:51 +02:00
2023-06-18 14:06:31 +02:00
2023-06-01 14:27:01 +02:00
2023-06-03 11:42:41 +02:00
2023-06-13 16:16:13 +02:00
2023-06-01 19:13:51 -05:00
2023-06-18 16:53:12 +02:00
2023-06-05 15:35:57 +02:00
2023-06-18 15:08:16 +03:00
2023-06-18 10:28:12 +02:00
2023-06-12 20:10:42 +01:00
2023-06-08 13:37:04 +02:00
2023-06-14 11:39:36 -04:00
2023-06-18 05:24:54 +01:00
2023-06-17 16:26:16 +01:00
2023-06-02 03:12:27 +01:00
2023-06-15 12:24:19 -04:00
2023-06-16 09:41:46 +03:00
2023-06-11 12:00:05 -07:00
2023-06-18 16:53:14 +02:00
2023-06-18 16:53:14 +02:00
2023-06-18 16:53:14 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%