[Perlfect-search] save space for inv_index_db
Giorgos Zervas email@example.com
Fri, 18 Aug 2000 03:53:25 +0000
In the end we are all computer scientists and we live to optimize
things! I say we should apply this technique even if it reduces the
index size by 1%... Very neat solution; let's put it in 3.10.
Daniel Naber wrote:
> Hi Giorgos (everybody else may anser, too :-)
> I noticed that inv_index_db stores the weight as a float, and these float
> values look like: 0.23232469323. If it would be enough to store only 0.23
> (in this case), then we could also multiply it by 100 and save as in short
> unsigned int (which is 0-65535).
> This way we could make inv_index_db 30% smaller. Despite the fact that
> nobody cares about some hundred kilobytes anymore, does that make sense?
> perlfect-search mailing list