[INFO] Assembler optimized TTH hashing

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
CeeJay
Posts: 1
Joined: 2004-07-14 11:35
Contact:

[INFO] Assembler optimized TTH hashing

Post by CeeJay » 2004-07-19 08:09

You might be interested to know that camper from the Shareaza forums have made optimized assembler hashing for all of the types of hashing that Shareaza use , one of them being TTH (which DC++ have recently begun to use).

The assembler code is quite a bit faster than the original code and he is currently working on improving it even futher.

DC++ could probably benefit from gleaning at this code .. Shareaza is also a opensource project.

You can find threads on this subject in the Code Discussion area of the Shareaza forums :
http://forums.shareaza.com/forumdisplay ... forumid=53

Threads to look for are thoose that mention assembler and faster hashing.

or you could just contact Camper.

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2004-07-19 09:46

Sweet, it was supposedly improved by 80%, which is always nice. But then again, it could have been really slow to being with... ;)

These appear to be the main threads:
http://forums.shareaza.com/showthread.p ... adid=22516
http://forums.shareaza.com/showthread.p ... adid=22292

cologic
Programmer
Posts: 337
Joined: 2003-01-06 13:32
Contact:

Post by cologic » 2004-07-19 09:54

While one welcomes any CPU optimizations, I'm not sure of this's usefulness, given that the primary complain appears not to be insufficient hashing speed but its ability to interfere with concurrent computer usage.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-07-19 19:44

Nifty. A sidenote is that DC++ is portable to the Mac, so that should enter into consideration too.

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-07-19 23:05

I don't think it would be too hard to add a #ifdef _WIN32 to use the assembly when we can...

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-07-20 07:08

PseudonympH wrote:I don't think it would be too hard to add a #ifdef _WIN32 to use the assembly when we can...
Ugly, though. And wouldn't Alpha, PPC, and MIPS be _WIN32 as well, for their Windows NT 4.0 ports?

Locked