On 05/23/2012 03:47 PM, levin li wrote: > It's inefficient for get_obj_list() to traverse the object > list rbtree to get the object list every time, so I add a buffer > to cache the list, every time in get_obj_list() if the rbtree > has changed which is detected by the version number, we update > the buffer, then we can just read the buffer by memcpy() if the > object list has not been changed, instead of traverse the full > rbtree. Applied, thanks. Yuan |