| 1 |
CONTENTS |
| 2 |
|
| 3 |
1. DESCRIPTION |
| 4 |
2. INSTALLATION |
| 5 |
3. FEATURES |
| 6 |
4. COPYRIGHT |
| 7 |
|
| 8 |
|
| 9 |
-------------- |
| 10 |
1. DESCRIPTION |
| 11 |
-------------- |
| 12 |
|
| 13 |
Tie::Hash::Indexed is intentionally very similar to other |
| 14 |
ordered hash modules, most prominently Hash::Ordered. |
| 15 |
However, Tie::Hash::Indexed is written completely in XS |
| 16 |
and is, often significantly, faster than other modules. |
| 17 |
For a lot of operations, it's more than twice as fast as |
| 18 |
Hash::Ordered, especially when using the object-oriented |
| 19 |
interface instead of the tied interface. Other modules, |
| 20 |
for example Tie::IxHash, are even slower. |
| 21 |
|
| 22 |
The object-oriented interface of Tie::Hash::Indexed is |
| 23 |
almost identical to that of Hash::Ordered, so in most |
| 24 |
cases you should be able to easily replace one with the |
| 25 |
other. |
| 26 |
|
| 27 |
--------------- |
| 28 |
2. INSTALLATION |
| 29 |
--------------- |
| 30 |
|
| 31 |
Installation of the Tie::Hash::Indexed module follows the standard |
| 32 |
Perl Way and should not be harder than: |
| 33 |
|
| 34 |
perl Makefile.PL |
| 35 |
make |
| 36 |
make test |
| 37 |
make install |
| 38 |
|
| 39 |
Note that you may need to become superuser to 'make install'. |
| 40 |
|
| 41 |
If you're building the module under Windows, you may need to use a |
| 42 |
different make program, such as 'nmake', instead of 'make'. |
| 43 |
|
| 44 |
----------- |
| 45 |
3. FEATURES |
| 46 |
----------- |
| 47 |
|
| 48 |
You can enable or disable certain features at compile time by adding |
| 49 |
options to the Makefile.PL call. However, you can safely leave them |
| 50 |
at their default. |
| 51 |
|
| 52 |
Currently, the only available feature is 'debug' to build the module |
| 53 |
with debugging support. If your perl binary was already built with |
| 54 |
debugging support, the 'debug' feature is enabled by default. |
| 55 |
|
| 56 |
You can enable or disable features explicitly by adding the arguments |
| 57 |
|
| 58 |
enable-feature |
| 59 |
disable-feature |
| 60 |
|
| 61 |
to the Makefile.PL call. To explicitly build the module with debugging |
| 62 |
enabled, you would say: |
| 63 |
|
| 64 |
perl Makefile.PL enable-debug |
| 65 |
|
| 66 |
This will still allow you to pass other 'standard' arguments to |
| 67 |
Makefile.PL, like |
| 68 |
|
| 69 |
perl Makefile.PL enable-debug OPTIMIZE=-O3 |
| 70 |
|
| 71 |
------------ |
| 72 |
4. COPYRIGHT |
| 73 |
------------ |
| 74 |
|
| 75 |
Copyright (c) Marcus Holland-Moritz. All rights reserved. |
| 76 |
This program is free software; you can redistribute it and/or modify |
| 77 |
it under the same terms as Perl itself. |
| 78 |
|