Commit Graph
2 Commits
Author SHA1 Message Date
Franz Busch c9756e1083 Adopt swift-format (#2794)
* Apply formatting

* Apply no block comments rule

* Apply OmitExplicitReturns

* Apple OnlyOneTrailingClosureArgument

* Apply NoAssignmentInExpressions

* Fix up DontRepeatTypeInStaticProperties lint errors

* Apply `OrderedImports`

* Apply `ReplaceForEachWithForLoop`

* format file

* Enable the formatting pipeline

* Adopt `AmbiguousTrailingClosureOverload`

* Fix license header

* Fix format check

* Fix `EndOfLineComment`

* Fix CI

* Adapt CI script to check if changes when running formatting

* Separate lint and format into to steps

* Fix format

* Adopt `UseEarlyExits`

* Revert "Adopt `UseEarlyExits`"

This reverts commit d1ac5bbe12.
2024-07-19 11:48:17 +02:00
Gregor Milos (Grzegorz Miłoś) c3b6f1f3f5 Fix CoW performance bug in NIOThreadPool work queue (#2669)
* Benchmark for measuring NIOThreadPool dispatch

* Avoid CoW cost for NIOThreadPool work queue

* Flip stray `var` to a `let`.

* Use .modifying state to prevent CoW, not a class

* Removing some obselete comment noise.

* Use Deque instead of CirclarBuffer in NIOThreadPool

* Ratchet down the # of allocs for read_10000_chunks_from_file. NIOTheadPool changes reduced the allocations required.
2024-02-28 15:43:52 +00:00