Improved search system announced - supports exact size

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
Opera
Programmer
Posts: 15
Joined: 2003-02-21 13:45

Improved search system announced - supports exact size

Post by Opera » 2003-02-26 07:40

I added the following feature to oDC to lower cpu usage. It's extremely useful if you have many files with different sizes.

When you client searches for alternates it simply searches for the exact size. This way, clients can skip to string-match the all its files if it didn't match the size.

Exact search is the same thing as "normal" search (for any size) except it has the size field set to a real value, where normal searches only (from now on) searches with the size 0 or [empty string], ie on protocol level you simply search with F:F or F:T. the first is F anyway, just like SIZE_DONTCARE...

It's as simple as this, and it lower cpu pressure extremely much and it gets respons from older dc++ clients and nmdc clients, since they just ignore the size if it's a DONTCARE search =)

Opera
Creator of the dc++ fork, oDC found at:
http://gempond.com/odc

Locked