Re: Must DateTime load all Locales?

[email protected] ("David E. Wheeler") Tue, 5 Aug 2014 16:34:09 -0700
Newsgroups perl.datetime
Message-ID <[email protected]>
On Aug 5, 2014, at 4:18 PM, Olivier MenguĂ© <[email protected]> wrote:

> Here is below the output (latest releases of DateTime, DateTime::Locale, DateTime::TimeZone on perl 5.20.0).
> DateTime::Locale::Catalog is the module that contains all the locales names.
> David, is it that module that you worry about or have you found something worse?

I think the overhead comes in the DateTime::Locale::_register() function, which is called once for each locale returned by DateTime::Locale::Catalog. I would not think any locales would be loaded until they were needed.

Best,

David
signature.asc (application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJT4WnxAAoJEJLfYnT4yIHxoqYP/2korTzZIFynW3ZWxK+yCdv0
hplEToz43ctvtICdf7gyae8LuF2OMuOaTaSM83EnDxGcGl4d2CoNFMO8ny/D/k8i
TKdZlj5Ww+KR/WqcRqTE0epm+czgwU8sd8uQM2xQuCFTXiJmmhX93r5ITbw3BXq6
o3V3HHQ9i5LbXbQEJaqUOuKeyGXvYXTor73rjZSbR0GSbUoVe5uA+lO4zqiw+Tps
SxQuUMFHTfOF1gLQcscRfci6oX+VGY/LHEVc3zNktqrMqX160Q/ZhybI+cfjr4nj
VPb8crDjN/VN2GTX6P10oJsNvkcc2NSUlx3dEFiiY2Oq7kTz91zQpsHvgrcDpbPB
pnbQRDIpq1HYC4GcvM287PavGpvSOt+2euRpjsQlDVcpOeH4/L9HevhVDTkQxIJI
LtZdkGt7+XBru5aabPh2cM9WIWRtEiJpmbb3s8mA7Zr+YqUKgYLwsYmCrNGlTQsv
bMBayB0tlQ3bTHoD1mkBxrO0mfQoqTreNM6Y7vkDpwJc3B6dBUx6bfDnQ6jUQ1sI
J1w2cv2Hf2PGmzPYAtBe9CjNHz1EOLoJt3eLXvTSiM7MifsKTmGEWe5b+pkoBPr8
nksPCNjJiSSU9cv5/8FtdVJLrTucJ2fgEA0KYOw4LYh9oX/CMDZtdCCdHbIPJx2H
ZV56fu5JvmqPbpE8qvg7
=h8cs
-----END PGP SIGNATURE-----