antirez/redis — pull request #1769 by manucorporat (2014-05-21 14:21:38+00:00)
Title: Optimized LTRIM

When several consecutive nodes are removed from the tail or head of a given list, the new algorithm reduces the overhead of removing nodes one by one and the intermediary operations (set new head/tail, update links...).