[libclass-tiny-perl] 06/07: document internal caching
gregor herrmann
gregoa at debian.org
Sun May 31 14:03:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to annotated tag release-0.007
in repository libclass-tiny-perl.
commit 7809b9247e3629a0b8eaf00b31df4731b96e99f0
Author: David Golden <dagolden at cpan.org>
Date: Sat Sep 7 16:47:46 2013 -0400
document internal caching
---
Changes | 3 +++
dist.ini | 1 +
lib/Class/Tiny.pm | 5 +++++
3 files changed, 9 insertions(+)
diff --git a/Changes b/Changes
index 6fe9cad..7ef8527 100644
--- a/Changes
+++ b/Changes
@@ -10,6 +10,9 @@ Revision history for Class-Tiny
- constructor and destructors are slightly faster when there
are no superclasses except Class::Tiny::Object
+ - linearized @ISA and other items are cached for speed when
+ the first object is created
+
0.006 2013-09-05 11:56:48 America/New_York
[ADDED]
diff --git a/dist.ini b/dist.ini
index 74ab3cc..7f51484 100644
--- a/dist.ini
+++ b/dist.ini
@@ -9,6 +9,7 @@ copyright_year = 2013
stopwords = destructor
stopwords = fatpacking
stopwords = interoperability
+stopwords = linearized
[RemovePrereqs]
diff --git a/lib/Class/Tiny.pm b/lib/Class/Tiny.pm
index 9eb7da9..ba5e050 100644
--- a/lib/Class/Tiny.pm
+++ b/lib/Class/Tiny.pm
@@ -376,6 +376,11 @@ C<create_attributes> to set up the C<@ISA> array and attributes. Anyone
attempting to extend Class::Tiny itself should use these instead of mocking up
a call to C<import>.
+When the first object is created, linearized C<@ISA> and various subroutines
+references are cached for speed. Ensure that all inheritance and methods are
+in place before creating objects. (You don't want to be changing that once you
+create objects anyway, right?)
+
=head1 RATIONALE
=head2 Why this instead of Object::Tiny or Class::Accessor or something else?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclass-tiny-perl.git
More information about the Pkg-perl-cvs-commits
mailing list