BSD Ports

devel/p5-Heap-Simple 0.13_1 DragonFly

Fast and easy to use classic heaps

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
26.3 KiB, 59.2 KiB installed

Description

A heap is a partially sorted structure where it's always easy to extract the smallest element. If the collection of elements is changing dynamically, a heap has less overhead than keeping the collection fully sorted.

The order in which equal elements get extracted is unspecified.

The main order relations supported by this module are "<" (numeric compare) and "lt" (string compare).

The internals of the module do nothing with the elements inserted except inspecting the key. This means that if you for example store a blessed object, that's what you will get back on extract. It's also ok to keep references to the elements around and make changes to them while they are in the heap as long as you don't change the key.

Heap::Simple itself is just a loader for the code that will actually implement the functionality mentioned above. You will need to install something like Heap::Simple::XS or Heap::Simple::Perl to be able to actually do anything.

In the other systems

The newest version among them is 0.13, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Heap-Simple0.13_1 newestnone known-[email protected]-
FreeBSDdevel/p5-Heap-Simple0.13_1 newestnone known-[email protected]-
HardenedBSDdevel/p5-Heap-Simple0.13_1 newestno data-[email protected]-
GhostBSDdevel/p5-Heap-Simple0.13_1 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Heap-Simple

From DPorts:

cd /usr/dports/devel/p5-Heap-Simple && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none

Message after installing

This module is useless by itself!  It requires one or both of:

- devel/p5-Heap-Simple-Perl (a pure perl implementation of the interface)
- devel/p5-Heap-Simple-XS (an XS implementation of the interface.)

Please take the time to install one or both of these now.