
Aug. 6, 2021
9:54 a.m.
On Fri, Aug 06, 2021 at 08:29:03AM -0000, wyz23x2@163.com wrote:
I thought that many places in stdlib could be made faster by this (bool is used a lot), maybe this is a major speedup.
I doubt that there are many places in the stdlib where the call to bool is the bottleneck, and a micro-optimization of avoiding the function call would make it a "major speedup". If you profile the stdlib modules, do you find any where calls to bool make up a major part of the run time cost? -- Steve