Re: git: kernel - Optimize the x86-64 lwbuf API

看板DFBSD_commit作者時間15年前 (2011/01/25 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
: :The optimization is cute, almost devolves this into an assignment, but :this new API is quite terrible imo, there must be a cleaner way to do :this. : :Sam It's not the best API in the world, the lwkt_token code used a similar API for a long time (passing the address of a stack-declared structure to the functions) which made it more complicated than necessary, but I don't think lwkt_token's solution (a per-thread array of token pointers) will work for lwbufs. Despite the API the actual implementation is ultra fast, even for i386 which doesn't use the stack-declared structure. -Matt
文章代碼(AID): #1DFZpoj3 (DFBSD_commit)
文章代碼(AID): #1DFZpoj3 (DFBSD_commit)