Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Hash-Objectify CPAN distribution.

Report information
The Basics
Id: 80044
Status: resolved
Priority: 0/
Queue: Hash-Objectify

People
Owner: Nobody in particular
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Inefficient reuse of AUTOLOAD
You can reduce the calls to AUTOLOAD by bulk-installing all accessors you can find. Change this line [1] to something like: accessors => [map { some handwavy check for method name compliance } keys %$self], Cheers [1] https://metacpan.org/source/DAGOLDEN/Hash-Objectify-0.001/lib/Hash/Objectify.pm#L78
That makes an assumption that all keys need accessors, which seems like premature optimization. Possibly an API for a "bulk install" might make sense, so the choice can be left to the user. I'll mark this as wish-list item.