Files
build_soong/android
Spandan Das 8a8714c781 Do not modify input in-place
SortedUniqueStrings and FirstUniqueStrings dedupes repeating elements
and returns the deduped list. Currently, it also modifies the input list
in-place, which causes non-determinisitc failures like b/275313114

Operate on a copy of the input so that the input remains untouched.

SortedUniqueStrings is O(NlogN) and FirstUniqueStrings is ~O(N), so
creating a copy (O(N)) should not result in major performance regressions.
Numbers for this single unit test:
```
go test . -run TestStubsForLibraryInMultipleApexes -v -count 1000
Before: 174s
After: 172s
```

Test: go test ./android
Test: go test . -run TestStubsForLibraryInMultipleApexes -v -count 1000
Change-Id: Id859723b2c2ebdc0023876c4b6fabe75d870bad7
2023-04-25 18:37:24 +00:00
..
2023-03-13 15:24:17 +00:00
2023-04-17 19:26:07 +00:00
2023-04-25 18:37:24 +00:00
2023-03-22 12:58:38 -07:00
2023-03-17 18:49:18 +00:00
2023-02-21 10:12:47 -08:00
2023-03-22 12:58:37 -07:00
2021-03-17 16:35:13 +01:00
2022-08-01 16:07:30 -04:00
2023-03-22 12:58:38 -07:00
2022-12-12 17:33:06 +00:00
2022-11-02 19:17:30 +00:00
2022-10-25 11:46:01 +02:00
2022-11-07 14:12:11 +00:00
2023-02-13 10:23:36 -08:00
2023-04-10 20:20:41 +00:00
2023-04-10 20:20:41 +00:00
2021-12-13 13:33:15 -05:00
2023-02-14 17:07:41 +09:00
2021-09-23 11:37:57 +01:00
2023-04-25 18:37:24 +00:00
2023-03-31 17:52:01 -04:00