Skip to content

Commit 2640ff6

Browse files
authored
Revert "Fix quadratic performance of the ListMerger in specific usage pattern"
1 parent 478d8a6 commit 2640ff6

File tree

16 files changed

+977
-857
lines changed

16 files changed

+977
-857
lines changed

benchmark/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ set(SWIFT_BENCH_MODULES
4040
single-source/ArrayRemoveAll
4141
single-source/ArraySetElement
4242
single-source/ArraySubscript
43-
single-source/AsyncTree
4443
single-source/BinaryFloatingPointConversionFromBinaryInteger
4544
single-source/BinaryFloatingPointProperties
4645
single-source/BitCount

benchmark/single-source/AsyncTree.swift

Lines changed: 0 additions & 77 deletions
This file was deleted.

benchmark/utils/main.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import ArrayOfRef
2828
import ArrayRemoveAll
2929
import ArraySetElement
3030
import ArraySubscript
31-
import AsyncTree
3231
import BinaryFloatingPointConversionFromBinaryInteger
3332
import BinaryFloatingPointProperties
3433
import BitCount
@@ -224,7 +223,6 @@ register(ArrayOfRef.benchmarks)
224223
register(ArrayRemoveAll.benchmarks)
225224
register(ArraySetElement.benchmarks)
226225
register(ArraySubscript.benchmarks)
227-
register(AsyncTree.benchmarks)
228226
register(BinaryFloatingPointConversionFromBinaryInteger.benchmarks)
229227
register(BinaryFloatingPointProperties.benchmarks)
230228
register(BitCount.benchmarks)

include/swift/ABI/MetadataValues.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,32 +2511,6 @@ inline int descendingPriorityOrder(JobPriority lhs,
25112511
return (lhs == rhs ? 0 : lhs > rhs ? -1 : 1);
25122512
}
25132513

2514-
enum { PriorityBucketCount = 5 };
2515-
2516-
inline int getPriorityBucketIndex(JobPriority priority) {
2517-
// Any unknown priorities will be rounded up to a known one.
2518-
// Priorities higher than UserInteractive are clamped to UserInteractive.
2519-
// Jobs of unknown priorities will end up in the same bucket as jobs of a
2520-
// corresponding known priority. Within the bucket they will be sorted in
2521-
// FIFO order.
2522-
if (priority > JobPriority::UserInitiated) {
2523-
// UserInteractive and higher
2524-
return 0;
2525-
} else if (priority > JobPriority::Default) {
2526-
// UserInitiated
2527-
return 1;
2528-
} else if (priority > JobPriority::Utility) {
2529-
// Default
2530-
return 2;
2531-
} else if (priority > JobPriority::Background) {
2532-
// Utility
2533-
return 3;
2534-
} else {
2535-
// Background and lower
2536-
return 4;
2537-
}
2538-
}
2539-
25402514
inline JobPriority withUserInteractivePriorityDowngrade(JobPriority priority) {
25412515
return (priority == JobPriority::UserInteractive) ? JobPriority::UserInitiated
25422516
: priority;

include/swift/Basic/HeaderFooterLayout.h

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)