HTTP: Optimise response rendering and response parsing (#21046)
* +htp,ben HttpBlueprint benchmark * +act bring OptionVal from artery-dev +htc raw benchmarks * =htc request parsing benchmark * +htc,ben add benchmark for longer (raw) json response * =htc optimise renderHeaders, less Option allocs * -htc remove FastClock, not quite worth it
This commit is contained in:
parent
9372087464
commit
bb701d1725
15 changed files with 526 additions and 135 deletions
|
|
@ -382,7 +382,7 @@ object ByteString {
|
|||
} else throw new IndexOutOfBoundsException(idx.toString)
|
||||
}
|
||||
|
||||
// Avoid `iterator` in performance sensitive code, call ops directly on ByteString instead
|
||||
/** Avoid `iterator` in performance sensitive code, call ops directly on ByteString instead */
|
||||
override def iterator: ByteIterator.MultiByteArrayIterator =
|
||||
ByteIterator.MultiByteArrayIterator(bytestrings.toStream map { _.iterator })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue