我注意到 StringWriter 在内部使用 StringBuffer。但是,如果您不需要同步开销,是否有等效于在内部使用 StringBuilder 的 StringWriter?
java io performance
io ×1
java ×1
performance ×1