Skip to content

Commit

Permalink
devel/p5-Hash-Ordered: Add p5-Hash-Ordered 0.014
Browse files Browse the repository at this point in the history
Hash::Ordered implements an ordered hash, meaning that it associates keys with
values like a Perl hash, but keeps the keys in a consistent order. Because it is
implemented as an object and manipulated with method calls, it is much slower
than a Perl hash. This is the cost of keeping order.

However, compared to other ordered hash implementations, Hash::Ordered is
optimized for getting and setting individual elements and is generally faster at
most other tasks as well. For specific details, see Hash::Ordered::Benchmarks.
  • Loading branch information
sunpoet committed Apr 18, 2023
1 parent be89471 commit fbaf416
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -2595,6 +2595,7 @@
SUBDIR += p5-Hash-MultiValue
SUBDIR += p5-Hash-NoRef
SUBDIR += p5-Hash-Objectify
SUBDIR += p5-Hash-Ordered
SUBDIR += p5-Hash-Slice
SUBDIR += p5-Hash-Union
SUBDIR += p5-Hash-Util-FieldHash-Compat
Expand Down
23 changes: 23 additions & 0 deletions devel/p5-Hash-Ordered/Makefile
@@ -0,0 +1,23 @@
PORTNAME= Hash-Ordered
PORTVERSION= 0.014
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Fast, pure-Perl ordered hash class
WWW= https://metacpan.org/dist/Hash-Ordered

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

TEST_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep \
p5-Test-FailWarnings>=0:devel/p5-Test-FailWarnings \
p5-Test-Fatal>=0:devel/p5-Test-Fatal

USES= perl5
USE_PERL5= configure

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/p5-Hash-Ordered/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1681843820
SHA256 (Hash-Ordered-0.014.tar.gz) = 8dc36cd79155ae37ab8a3de5fd9120ffba9a31e409258c28529ec5251c59747b
SIZE (Hash-Ordered-0.014.tar.gz) = 36831
8 changes: 8 additions & 0 deletions devel/p5-Hash-Ordered/pkg-descr
@@ -0,0 +1,8 @@
Hash::Ordered implements an ordered hash, meaning that it associates keys with
values like a Perl hash, but keeps the keys in a consistent order. Because it is
implemented as an object and manipulated with method calls, it is much slower
than a Perl hash. This is the cost of keeping order.

However, compared to other ordered hash implementations, Hash::Ordered is
optimized for getting and setting individual elements and is generally faster at
most other tasks as well. For specific details, see Hash::Ordered::Benchmarks.
4 changes: 4 additions & 0 deletions devel/p5-Hash-Ordered/pkg-plist
@@ -0,0 +1,4 @@
%%SITE_PERL%%/Hash/Ordered.pm
%%SITE_PERL%%/Hash/Ordered/Benchmarks.pod
%%PERL5_MAN3%%/Hash::Ordered.3.gz
%%PERL5_MAN3%%/Hash::Ordered::Benchmarks.3.gz

0 comments on commit fbaf416

Please sign in to comment.