setup() — netty Function Reference
Architecture documentation for the setup() function in HpackEncoderBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 39571027_3942_8e99_3985_7219ec2b5521["setup()"] 995fbf9b_9fb0_36cd_ba95_60f0c2f27893["HpackEncoderBenchmark"] 39571027_3942_8e99_3985_7219ec2b5521 -->|defined in| 995fbf9b_9fb0_36cd_ba95_60f0c2f27893 style 39571027_3942_8e99_3985_7219ec2b5521 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmark.java lines 80–96
@Setup(Level.Trial)
public void setup() {
http2Headers = HpackBenchmarkUtil.http2Headers(size, limitToAscii);
if (duplicates) {
int size = http2Headers.size();
if (size > 0) {
Iterator<Map.Entry<CharSequence, CharSequence>> itr = http2Headers.iterator();
Map.Entry<CharSequence, CharSequence> entry = itr.next();
http2Headers.clear();
for (int i = 0; i < size; ++i) {
http2Headers.add(entry.getKey(), entry.getValue());
}
}
}
output = size.newOutBuffer();
sensitivityDetector = sensitive ? Http2HeadersEncoder.ALWAYS_SENSITIVE : Http2HeadersEncoder.NEVER_SENSITIVE;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmark.java at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free