Page 1 of 1

New namecoin branch : fastindex

Posted: Thu May 17, 2012 7:08 pm
by khal
https://github.com/khalahan/namecoin/tree/fastindex

I've changed the nameindex.dat structure to allow faster name_list (11 times) and name_scan (3 times) :)

Warning : nameindex.dat structure change between the master branch and this one. I advise you to work on a full blockchain copy too to avoid skipping some names.

I currently use this branch on my big wallet, so i would say it is stable enough for long term use, but do as you want :p (and report if it works or not :p)

To test it on your current repo :

Code: Select all

git remote add khalahan git://github.com/khalahan/namecoin.git
git checkout -b fastindex
git pull khalahan fastindex
Or with a new repo :

Code: Select all

git clone git://github.com/khalahan/namecoin.git
git checkout fastindex
Then :
- compile (make -f makefile.unix for example)
- delete nameindex.dat
- start namecoin
- reconstruct nameindex.dat with : namecoind rescanfornames
- test a : namecoind name_scan "" 1000000 :D

Re: New namecoin branch : fastindex

Posted: Sat May 19, 2012 2:55 pm
by khal
Here is a compiled version for linux, 64 bits :
http://dot-bit.org/files/temp/namecoind-fastindex

Re: New namecoin branch : fastindex

Posted: Wed May 23, 2012 11:47 am
by khal
I added a patch to automatically create the new index on first launch, to avoid manual errors and permit an easy upgrade for everybody.

Please, test and report if there are errors or not :)

Re: New namecoin branch : fastindex

Posted: Wed May 23, 2012 5:26 pm
by khal
khal wrote:Here is a compiled version for linux, 64 bits :
http://dot-bit.org/files/temp/namecoind-fastindex
I've updated the binary with latest patch.
So, simply start namecoind and it'll create the new index and use it.
khal wrote:Please, test and report if there are errors or not :)
Good idea :p

Re: New namecoin branch : fastindex

Posted: Sat Jul 20, 2013 9:04 am
by phelix
Better late than never: has this found it's way to master?

Re: New namecoin branch : fastindex

Posted: Sat Aug 10, 2013 4:54 pm
by virtual_master
That sounds good.
It is working only on your namecoind branch ?
Or it can be used on the newest namecoin-qt client from snailbrain also ?