This (undocumented) workspace allows benchmark developers to work on the collection benchmarks and the benchmarking infrastructure within Xcode, with minimal pain. Moving it under Utils/ makes it easier to build the package with the xcodebuild utility; it also makes it (hopefully) clear that the workspace isn't source stable.
* Stop depending on swift-collections-benchmark
Instead, move the benchmark suite into its own private nested package, under `Benchmarks/`.
The recommended way to build & run benchmarks is via the `Utils/run-benchmarks.sh` script, which continues to work as before with this change.
* Delete top-level Package.resolved file
# Conflicts:
# .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme
# Package.swift
* [utils] Add utility for shuffling sources to help reproduce MergeModules issues
* [Deque] Collapse Sequence/Collection conformances into a single file
The MergeModules phase in the compiler is broken: it isn’t always able to correctly handle circular dependencies across source files, like the ones that keep organically popping up with Sequence/Collection conformances that are defined in separate files.
Such dependencies sometimes triggers a compiler crash, depending on some (unknown) environmental parameters.
Trying to manually find and eliminate these circular dependencies has not proved productive. Instead, roll all Collection conformances into a single, huge source file.
* [Deque] Update CMakeLists