Commit Graph

13 Commits (779d6c235ff8fe5284fd10dc82a9b99e7fa38d06)

Author SHA1 Message Date
erdgeist 38c073e6dd minor white space 16 years ago
erdgeist a9ab9b0c0d Make all torrents in their buckets sorted again. 16 years ago
erdgeist 08c7162783 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
16 years ago
erdgeist 258cae746f Forgot one define READ32 16 years ago
erdgeist 5fb58458f6 Tidy up unnecessary includes 16 years ago
erdgeist 08d9c342d4 Add specialized vector functions to handle peers in sorted lists
Assume that compare_size is a mulptiple of 4 in all non-specialized cases and load int32_t to compare.
16 years ago
erdgeist 334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 16 years ago
erdgeist 3f5468672b Never let vectors shrink below their minimal capacity 16 years ago
erdgeist daaee855b2 Whitespace fixes 16 years ago
erdgeist cbd39af72d Add code to debug vector code performance. 16 years ago
erdgeist c28cf398fd Introduce some kind of versioning 17 years ago
erdgeist 848a06a706 Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes 17 years ago
erdgeist 8900cc0dd9 No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable. 17 years ago