Skip to content

PooledBytesOutputStream.write 占用较大CPU时间 #1

@isdom

Description

@isdom

发现网络存取是性能瓶颈,如下抓取trace,发现大量的消耗出现在 PooledBytesOutputStream.write中,更进一步的是在调用ConcurrentInvokeGuard的enter/leave时。TraceView 附件为:
2014-04-30 9 41 14

=================== 补记 ===================================
b36358f commit 应用后,再次抓取 trace,发现CPU时间集中在 BlocksWriteableSupport.getBlockAt 上,如下图:
2014-04-30 10 21 39
将其成员变量 _blocks的类型从LinkedList 更改为 ArryList

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions