trema / trema-edge

Transient repository for Trema OF1.3 branch
27 stars 14 forks source link

rewrite double linked list and hash table functions #111

Closed iHiroakiKawai closed 10 years ago

iHiroakiKawai commented 10 years ago

Double linked list now uses a sentinel as a handler. If prev or next hits the sentinel, then those are the ends. The reason of using sentinel is that sentinel has a mutex internally, and could not be NULL. One more merit of using sentinel is performance improvement in scanning the elements from the last to first.

Hash table data structure became simple.

Memory usage was reduced.

iHiroakiKawai commented 10 years ago

I'll drop this request, because there're many things before rewriting this specific class.