[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69108: false-positive warning "variable ‘_’ not left unused" in if-l
From: |
Ihor Radchenko |
Subject: |
bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let |
Date: |
Sat, 17 Feb 2024 11:45:30 +0000 |
Konstantin Kharlamov <Hi-Angel@yandex.ru> writes:
> Just a side note, from my experience pcase is very slow¹, so if a
> function supposed to be called often, I presume it's better to avoid
> `pcase`. Although, Idk how it compares to `cond`. But judging from the
> fact `cond` is implemented in C, it is likely faster.
>
> 1:
> https://github.com/ankurdave/color-identifiers-mode/commit/bc566bcdbd79f230b35eafd2b6c4f8428402ec09
I very much doubt the assertion of that commit.
AFAIK, pcase expands to a similar consp check. If may be slow only when
you macro-expand it during run time, not byte-compiling the code during
benchmark. I recommend `benchmark-run-compiled' for testing. Or even to
use native-compilation.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Konstantin Kharlamov, 2024/02/13
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Michael Heerdegen, 2024/02/13
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Michael Heerdegen, 2024/02/16
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Eli Zaretskii, 2024/02/17
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Konstantin Kharlamov, 2024/02/17
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let,
Ihor Radchenko <=
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Konstantin Kharlamov, 2024/02/17
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Ihor Radchenko, 2024/02/19
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Konstantin Kharlamov, 2024/02/19
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Michael Heerdegen, 2024/02/17
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Michael Heerdegen, 2024/02/17
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Eli Zaretskii, 2024/02/18
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Michael Heerdegen, 2024/02/24
- bug#69108: false-positive warning "variable ‘_’ not left unused" in if-let* and if-let, Eli Zaretskii, 2024/02/25