Adrien Grand created LUCENE-4977:
------------------------------------
Summary: Forbidden-apis: avoid calls to Collections.sort
Key: LUCENE-4977
URL: https://issues.apache.org/jira/browse/LUCENE-4977
Project: Lucene - Core
Issue Type: Improvement
Reporter: Adrien Grand
Priority: Minor
Collections.sort works by dumping its content into an array, sorting it with
Arrays.sort and then getting the elements back into the list. On the contrary,
CollectionUtil has the ability to sort in-place when the list supports
random-access, this is more memory-efficient and maybe even faster in some
cases.
We could use the forbidden-apis tool to prevent our code from calling
Collections.sort.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]