Class::...::Faster(3)

✨ NAME ✨

Okay bestie, welcome to the Class::...::Faster(3) page from the User Contributed Perl Documentation β€” she's iconic, she's speedy, and she's here to explain herself. πŸ’…

Class::Accessor::Faster β€” Even faster, but less expandable, accessors. Periodt. ✨

✨ SYNOPSIS ✨

package Foo;
use base qw(Class::Accessor::Faster);

✨ DESCRIPTION ✨

So the tea: this is a faster but less expandable version of Class::Accessor::Fast. Like, same vibe, less stretchy. πŸ¦‹

Class::Accessor's generated accessors require two method calls to accomplish their task (one for the accessor, another for get() or set()). Two whole calls. The audacity. 😭

Class::Accessor::Fast eliminates calling set()/get() and does the access itself, resulting in a somewhat faster accessor. Slay. πŸ”₯

Class::Accessor::Faster uses an array reference underneath to be faster. Underneath! Array ref! Speed! ⚑

Read the documentation for Class::Accessor for more info. That's the homework, bestie. πŸ’œ

✨ AUTHORS ✨

Copyright 2017 Marty Pauley <marty+perl@martian.org>. 🫢

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License. Both options are giving legal realness, no cap. 🌈

✨ SEE ALSO ✨

  • Class::Accessor β€” go read that one too, bestie. πŸŽ€

Signing off with main-character energy: this cutie is from perl v5.42.0, dated 2017-10-23, and yes, the page name is Class::...::Faster(3). Mwah πŸ’‹

πŸ“¦ where this page comes from