Re: Why sorting binary data is so slow?
- From: Mark Janssen <mpc.janssen@xxxxxxxxx>
- Date: Fri, 17 Oct 2008 03:06:59 -0700 (PDT)
On Oct 17, 11:17 am, ladayaros...@xxxxxxxxx wrote:
On 17 ÏËÔ, 12:44, Alexandre Ferrieux <alexandre.ferri...@xxxxxxxxx>
wrote:
What makes you think so ? Do you believe dichotomy is the only way of
looking up a needle in a haystack ?
No, but I'm trying this approach now...
If I were to do this, I'd replace
š šlappend AllRecs $rec
with
š šset AllRecs($rec) $something ;# <- you didn't say what output was
sought
All 'somethings' total size is over 1Gb ;)
Then this array must be made persistent (to be used by script that
actually makes
searches). It's one indexing -- many searches scheme. Total index
files
(there are many of them for one data file) size is over 4Gb, and I
need to search in all of them.
Then at search time the lookup would be
š šset found $AlLRecs($key).
And I must read whole array from disk to make it work...
If you need a database, why not use a database? Storing it all in an
SQLite DB will provide persistency and allow fast searching.
Mark
.
- Follow-Ups:
- Re: Why sorting binary data is so slow?
- From: ladayaroslav
- Re: Why sorting binary data is so slow?
- References:
- Why sorting binary data is so slow?
- From: ladayaroslav
- Re: Why sorting binary data is so slow?
- From: Donal K. Fellows
- Re: Why sorting binary data is so slow?
- From: ladayaroslav
- Re: Why sorting binary data is so slow?
- From: Alexandre Ferrieux
- Re: Why sorting binary data is so slow?
- From: ladayaroslav
- Re: Why sorting binary data is so slow?
- From: Alexandre Ferrieux
- Re: Why sorting binary data is so slow?
- From: ladayaroslav
- Why sorting binary data is so slow?
- Prev by Date: Re: tcp connection in gui: event based
- Next by Date: Re: What tools are in your Tcl debugging toolbox?
- Previous by thread: Re: Why sorting binary data is so slow?
- Next by thread: Re: Why sorting binary data is so slow?
- Index(es):
Relevant Pages
|