在 ChannelPipeline 中引入了解压器和压缩器,但运行时间太大,与特定类中引入的两种方法的执行时间相比。
@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = pipeline();
pipeline.addLast("decoder",new IcapRequestDecoder(maxInitialLineLength, maxIcapHeaderSize, maxHttpHeaderSize, maxChunkSize));
pipeline.addLast("chunkAggregator",new IcapChunkAggregator(maxContentLength));
pipeline.addLast("decompressor",new IcapContentDecompressor());
pipeline.addLast("encoder",new IcapResponseEncoder());
pipeline.addLast("chunkSeparator",new IcapChunkSeparator(maxContentLength));
pipeline.addLast("handler", handler);
pipeline.addLast("compressor",new IcapContentCompressor());
return pipeline;
}
可能是什么原因?