Upstream software project

perl-Class-XSAccessor

Generate fast XS accessors without runtime compilation

About perl-Class-XSAccessor

Generate fast XS accessors without runtime compilation

This project links 3 native package records across 3 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

openSUSE Leap 15.6: 1 package records; openSUSE Leap 16.0: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.perl-Class-XSAccessor: recorded package coverageopenSUSE Leap 15.61 recordsopenSUSE Leap 16.01 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
perl-Class-XSAccessor
Publisher
Not authoritatively mapped
Native package records
3
Operating systems
opensuse-leap-15-6, opensuse-leap-16-0, opensuse-tumbleweed
License expression
Artistic-1.0 or GPL-1.0+
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

Class::XSAccessor implements fast read, write and read/write accessors in XS. Additionally, it can provide predicates such as 'has_foo()' for testing whether the attribute 'foo' exists in the object (which is different from "is defined within the object"). It only works with objects that are implemented as ordinary hashes. the Class::XSAccessor::Array manpage implements the same interface for objects that use arrays for their internal representation. Since version 0.10, the module can also generate simple constructors (implemented in XS). Simply supply the 'constructor => 'constructor_name'' option or the 'constructors => ['new', 'create', 'spawn']' option. These constructors do the equivalent of the following Perl code: sub new { my $class = shift; return bless { @_ }, ref($class)||$class; } That means they can be called on objects and classes but will not clone objects entirely. Parameters to 'new()' are added to the object. The XS accessor methods are between 3 and 4 times faster than typical pure-Perl accessors in some simple benchmarking. The lower factor applies to the potentially slightly obscure 'sub set_foo_pp {$_[0]->{foo} = $_[1]}', so if you usually write clear code, a factor of 3.5 speed-up is a good estimate. If in doubt, do your own benchmarking! The method names may be fully qualified. The example in the synopsis could have been written as 'MyClass::get_foo' instead of 'get_foo'. This way, methods can be installed in classes other than the current class. See also: the 'class' option below. By default, the setters return the new value that was set, and the accessors (mutators) do the same. This behaviour can be changed with the 'chained' option - see below. The predicates return a boolean. Since version 1.01, 'Class::XSAccessor' can generate extremely simple methods which just return true or false (and always do so). If that seems like a really superfluous thing to you, then consider a large class hierarchy with interfaces such as the PPI manpage. These methods are provided by the 'true' and 'false' options - see the synopsis. 'defined_predicates' check whether a given object attribute is defined. 'predicates' is an alias for 'defined_predicates' for compatibility with older versions of 'Class::XSAccessor'. 'exists_predicates' checks whether the given attribute exists in the object using 'exists'.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

openSUSE Leap 15.6

  1. Package perl-Class-XSAccessor

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): Generate fast XS accessors without runtime compilation

    1.19-bp156.3.4: aarch64 ppc64le s390x x86_64

    Source: perl-Class-XSAccessor

openSUSE Leap 16.0

  1. Package perl-Class-XSAccessor

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/Perl): Generate fast XS accessors without runtime compilation

    1.19-bp160.1.12: aarch64 ppc64le s390x x86_64

    Source: perl-Class-XSAccessor

openSUSE Tumbleweed

  1. Package perl-Class-XSAccessor

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/Perl): Generate fast XS accessors without runtime compilation

    1.19-3.52: x86_64

    Source: perl-Class-XSAccessor

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.