casouri / vundo

Visualize the undo tree.
413 stars 20 forks source link

Optimization: avoid unnecessary duplication reversing a list #37

Closed ideasman42 closed 2 years ago

ideasman42 commented 2 years ago

Use nreverse instead of reverse on a list used as a return value, since there is no need to keep the contents of the list being reversed.

casouri commented 2 years ago

Applied. Thanks.