Commit Graph

20 Commits (master)

Author SHA1 Message Date
Dirk Engling e52170435f sync with git 5 years ago
Dirk Engling 834c600c8d Nicer formatting for value-- 14 years ago
Dirk Engling 2be302c225 binary search speedup was buggy. 14 years ago
Dirk Engling 842a3db5d9 Optimize binary_search function 14 years ago
Dirk Engling 0987307ea3 Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set default handler for the second SIGINT 15 years ago
Dirk Engling 83d62ba0fb Some premature optimization lead to always only 8bytes of ot_peers being copied 15 years ago
Dirk Engling 6337649b08 V6 15 years ago
Dirk Engling 2cf9b92729 minor white space 15 years ago
Dirk Engling 343169385e Make all torrents in their buckets sorted again. 15 years ago
Dirk Engling fa6c870315 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
15 years ago
Dirk Engling d46a8a5d06 Forgot one define READ32 15 years ago
Dirk Engling 545dab2c18 Tidy up unnecessary includes 15 years ago
Dirk Engling 55af66acb2 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.
15 years ago
Dirk Engling c0dab929ab The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 15 years ago
Dirk Engling 18d338ce40 Never let vectors shrink below their minimal capacity 15 years ago
Dirk Engling 7dcd727ce6 Whitespace fixes 15 years ago
Dirk Engling 55632a2dca Add code to debug vector code performance. 15 years ago
Dirk Engling e767fae72a Introduce some kind of versioning 16 years ago
Dirk Engling 5b3eb23f5f Drop ot_{byte,word,dword} and use uint{8,16,32}_t, also simplify includes 16 years ago
Dirk Engling fed78043a6 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. 16 years ago