Dave Rolsky wrote:
Storing _only_ seconds would basically be impossible without loading
some Math::BigNum modules, I believe.  I'd like to avoid requiring that
for the base object, since it'll probably slow things down a lot.

Rather than relying on that assumption, it would be prudent to do some testing first. The current Math::BigInt module is much faster than the one that shipped with 5.6.x, and provides multiple backends for even faster performance. Since you are already loading overload.pm (I presume), the overall module speed will not be significantly different whether you load Math::BigInt or not.

Alternatively, I am starting to work my way through compiling libtai under Win32 natively (it compiles just fine under Cygwin as well as all *nixes that support unsigned long long). Using TAI64 as the base storage method could be very fast on any platform without having to rely on M::BI for extended precision.

John

--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Reply via email to