The surprising thing is that if you benchmark this code with 10
报料邮箱: [email protected]
,这一点在WPS官方版本下载中也有详细论述
return PlatformByteArrayConverter.toByteArray(this)
Under the hood, BPattern builds a pattern AST using the same pattern node classes as the rewrite engine. All the original matching and rewriting machinery is still there — just wrapped in a more approachable, scriptable interface.