Skip to content

Revert "Fix quadratic performance of the ListMerger in specific usage pattern" #73808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ set(SWIFT_BENCH_MODULES
single-source/ArrayRemoveAll
single-source/ArraySetElement
single-source/ArraySubscript
single-source/AsyncTree
single-source/BinaryFloatingPointConversionFromBinaryInteger
single-source/BinaryFloatingPointProperties
single-source/BitCount
Expand Down
77 changes: 0 additions & 77 deletions benchmark/single-source/AsyncTree.swift

This file was deleted.

2 changes: 0 additions & 2 deletions benchmark/utils/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import ArrayOfRef
import ArrayRemoveAll
import ArraySetElement
import ArraySubscript
import AsyncTree
import BinaryFloatingPointConversionFromBinaryInteger
import BinaryFloatingPointProperties
import BitCount
Expand Down Expand Up @@ -224,7 +223,6 @@ register(ArrayOfRef.benchmarks)
register(ArrayRemoveAll.benchmarks)
register(ArraySetElement.benchmarks)
register(ArraySubscript.benchmarks)
register(AsyncTree.benchmarks)
register(BinaryFloatingPointConversionFromBinaryInteger.benchmarks)
register(BinaryFloatingPointProperties.benchmarks)
register(BitCount.benchmarks)
Expand Down
26 changes: 0 additions & 26 deletions include/swift/ABI/MetadataValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -2511,32 +2511,6 @@ inline int descendingPriorityOrder(JobPriority lhs,
return (lhs == rhs ? 0 : lhs > rhs ? -1 : 1);
}

enum { PriorityBucketCount = 5 };

inline int getPriorityBucketIndex(JobPriority priority) {
// Any unknown priorities will be rounded up to a known one.
// Priorities higher than UserInteractive are clamped to UserInteractive.
// Jobs of unknown priorities will end up in the same bucket as jobs of a
// corresponding known priority. Within the bucket they will be sorted in
// FIFO order.
if (priority > JobPriority::UserInitiated) {
// UserInteractive and higher
return 0;
} else if (priority > JobPriority::Default) {
// UserInitiated
return 1;
} else if (priority > JobPriority::Utility) {
// Default
return 2;
} else if (priority > JobPriority::Background) {
// Utility
return 3;
} else {
// Background and lower
return 4;
}
}

inline JobPriority withUserInteractivePriorityDowngrade(JobPriority priority) {
return (priority == JobPriority::UserInteractive) ? JobPriority::UserInitiated
: priority;
Expand Down
39 changes: 0 additions & 39 deletions include/swift/Basic/HeaderFooterLayout.h

This file was deleted.

Loading