Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

geoff (2013)

geoff
  reversethis-{gro ... om} {ta} {ffoeg}
http://www.modperlcookbook.org/

see http://www.modperlcookbook.org/~geoff/ [modperlcookbook.org] for personal information, links to presentations, GPG key, and so on.

Journal of geoff (2013)

Thursday August 21, 2003
09:00 AM

compressing tables

[ #14250 ]
I've started the largish task of sync'ing APR with the APR:: classes in mod_perl 2.0. in trying to get comfortable with the code I started with something easy, apr_table_compress .

say you have a table like

 [ sail => 'spinnaker',
   sail => 'jib',
   sail => 'blooper' ]


if you issue $table->compress(APR::OVERLAP_TABLES_SET) the table will be flattened into

 [ sail => 'blooper' ]

$table->compress(APR::OVERLAP_TABLES_MERGE) will produce

 [ sail => 'spinnaker, jib, blooper' ]

I'm not sure how useful that really is, but it's there in APR so it might as well be exposed.

if you build it, they will come.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.