[Numpy-discussion] Speedup by avoiding memory alloc twice in scalar array