File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
swift-url-routing-benchmark Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public enum PathBuilder {
3030 self . componentParser = componentParser
3131 }
3232
33+ @inlinable
3334 public func parse( _ input: inout URLRequestData ) throws -> ComponentParser . Output {
3435 guard input. path. count >= 1 else { throw RoutingError ( ) }
3536 return try self . componentParser. parse ( input. path. removeFirst ( ) )
@@ -38,6 +39,7 @@ public enum PathBuilder {
3839}
3940
4041extension PathBuilder . Component : ParserPrinter where ComponentParser: ParserPrinter {
42+ @inlinable
4143 public func print( _ output: ComponentParser . Output , into input: inout URLRequestData ) rethrows {
4244 try input. path. prepend ( self . componentParser. print ( output) )
4345 }
Original file line number Diff line number Diff line change 11import Benchmark
22import Foundation
3- import Parsing
43import URLRouting
54
65#if canImport(FoundationNetworking)
Original file line number Diff line number Diff line change 11import Benchmark
2- import Parsing
32
43Benchmark . main (
54 [
You can’t perform that action at this time.
0 commit comments