PERF: fix regression in reductions for boolean/integer data (#41924)
PERF: fix regression in reductions for boolean/integer data (#41924)

Co-authored-by: Brock <7df1a7ecbb407e4cf4ece07917bfbb95757e0c09@gmail.com>
rs2/pandas,dsm054/pandas,jorisvandenbossche/pandas,gfyoung/pandas,pandas-dev/pandas,datapythonista/pandas,gfyoung/pandas,rs2/pandas,dsm054/pandas,gfyoung/pandas,jorisvandenbossche/pandas,rs2/pandas,datapythonista/pandas,pandas-dev/pandas,pandas-dev/pandas,dsm054/pandas,rs2/pandas,gfyoung/pandas,dsm054/pandas,dsm054/pandas,datapythonista/pandas,jorisvandenbossche/pandas,jorisvandenbossche/pandas,gfyoung/pandas,pandas-dev/pandas,datapythonista/pandas