4 ms·
I don't think the author was concerned with performance. I was providing the list.* type suggestion to make it easier to delete elements syntactically. However
by cwojno 6y ago
I don't think the author was concerned with performance. I was providing the list.* type suggestion to make it easier to delete elements syntactically.
However, you're likely right for slices with len < 500 or so due to garbage collector churn on linked lists.