Browse Source
On recent VMs, collection.toArray(new T[0]) is faster than collection.toArray(new T[collection.size()]). Since it is also more readable, it should now be the preferred way of collection to array conversion. https://shipilev.net/blog/2016/arrays-wisdom-ancients/ Change-Id: I80388532fb4b2b0663ee1fe8baa94f5df55c8442 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>stable-5.1
Michael Keppler
6 years ago
committed by
Jonathan Nieder
25 changed files with 37 additions and 37 deletions
Loading…
Reference in new issue