skynet icon indicating copy to clipboard operation
skynet copied to clipboard

a little enhancement about skynet_timer.c

Open Neway6655 opened this issue 12 years ago • 1 comments

Just a quick review about the skynet_timer.c, its a very cool timer impl, and found the line https://github.com/cloudwu/skynet/blob/master/skynet-src/skynet_timer.c#L135 can move into the while loop of L138, to reduce the unnecessary shift operation.

Neway6655 avatar Jan 06 '14 15:01 Neway6655

I don't want to do it, because the shift is fast and it's not the bottleneck.

cloudwu avatar Jan 07 '14 02:01 cloudwu