Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Compress positive integers

by BrowserUk (Patriarch)
on Apr 08, 2008 at 02:02 UTC ( [id://678880]=note: print w/replies, xml ) Need Help??


in reply to Compress positive integers

Had you posted a link to the pdf describing the algorithm and it's performance advantages, you might not be coping the flack and "you don't wanna be doing that"s, that you're getting.

With regard to the algorithm, you will not realise those performance benefits if you code this in Perl.

With regard to your problem:

  • How big are your indexes?

    Ie. How many offsets do they contain? (How many documents are you indexing?)

  • How big are your offsets?

    IOWs, how big is your largest document?

  • How are you writing your indexes?

    If you're not writing them in binary (ie. packing them), then you are wasting large amounts of space and time.

Answer those questions and we may be able to help you.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://678880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-04-19 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found