nextcloud-android/src/androidTest
Álvaro Brey Vilas 2baf63d809
AlphaNumComparator: optimize usage and resolve signature problems
- Methods had ambiguous signatures (parameterized compare<T> overlapped the various typed compare()). This made the compiler very confused.
 - In several places throughout the app, AlphaNumComparator was getting repeatedly instantiated just to manually call a typed compare(). This was very wasteful

To solve both problems, the typed compare() methods have been been made static.

The performance gains of not instantiating the comparator repeatedly are very noticeable. In a test loading a local folder for upload with 1000 files in it,
time of load is reduced from 28 seconds to 17 seconds.

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
2022-01-27 09:33:50 +01:00
..
assets Calendar backup/import 2021-10-25 13:02:12 +02:00
disabledTests Improve app store screenshot designs 2019-08-01 08:17:35 +02:00
java/com AlphaNumComparator: optimize usage and resolve signature problems 2022-01-27 09:33:50 +01:00
AndroidManifest.xml override lib is not needed anylonger 2020-10-07 09:10:17 +02:00