netty / netty-incubator-codec-http3

Experimental HTTP3 codec on top of QUIC
Apache License 2.0
167 stars 35 forks source link

StreamTracker should better extend ArrayDeque to reduce memory copies #265

Closed normanmaurer closed 9 months ago

normanmaurer commented 9 months ago

Motivation:

StreamTracker did extend ArrayList which is not optimal as we always remove from index 0 and so cause memory copies.

Modifications:

Let StreamTracker extend ArrayDeque so removals dont cause memory copies all the time

Result:

Less memory copies

normanmaurer commented 9 months ago

Noticed this will investigate another problem