4 ms·
I'd assume fastConvert is less accurate. If it was both fast and perfect it'd just be 'convert'
by 8n4vidtmkvmk 3y ago
I'd assume fastConvert is less accurate. If it was both fast and perfect it'd just be 'convert'
- forty 3y agoFast doesn't always mean good. For example in cryptography a fonction named fastCompare could be a non constant time comparison which is faster but not safe for cryptography :D (though you'd probably want to name it unsafeButFastCompare I guess ^^)
- BoppreH 3y agoOr it only accepts certain inputs, or has an expensive first invocation but amortized cost, or is not bug-compatible with the old `convert`, or it requires a large cache, or it's optimized for parallelism, or uses instructions only available in newer CPUs, or it was a prototype that stuck around, or...