Gurusamy Sarathy <gsar@ActiveState.com> writes: >instead it should cast the IVX to NV and return that. Among other >things, this means making SvNV() do something like this: > > #define SvNV(sv) (SvNOK(sv) ? SvNVX(sv) > : (SvIOK(sv) ? (NV)SvIVX(sv) : sv_2nv(sv))) > >instead of this: > > #define SvNV(sv) (SvNOK(sv) ? SvNVX(sv) : sv_2nv(sv)) You could do all that inside sv_2nv() in the 1st instance rather than replicating all the tests everywhere SvNV() occurs. > >You could try that (embellish it further for UVness) and see where that >takes you performance-wise... > > >Sarathy >gsar@ActiveState.com -- Nick Ing-SimmonsThread Previous | Thread Next