diff options
author | Daniel C. Sobral <dcsobral@gmail.com> | 2012-01-26 18:07:49 -0200 |
---|---|---|
committer | Daniel C. Sobral <dcsobral@gmail.com> | 2012-01-26 18:07:49 -0200 |
commit | 2df3934168f62d8662d5f29c1b0db6119353406d (patch) | |
tree | b58c7db7ae0370dbacc35fbed8ce99b776aac743 /test/files/neg/checksensible.check | |
parent | c94d342b385fa510882721b8b7f2070750c60f0e (diff) | |
download | scala-2df3934168f62d8662d5f29c1b0db6119353406d.tar.gz scala-2df3934168f62d8662d5f29c1b0db6119353406d.tar.bz2 scala-2df3934168f62d8662d5f29c1b0db6119353406d.zip |
Performance improvements for CommentFactory.
A few small improvements to the parsing steps of CommentFactory (both
main parsing and wiki format parsing), resulting in a 30% reduction
of time spent in def parse, which gives me 5% reduction in docs.lib.
Turn docBody into a StringBuilder, to improve concatenation speed. Make
WikiParser and CharReader work with String instead of Array[String], to
reduce copying of data. Get rid of the implicit conversion from String
to Array[String].
Also, adjust a couple of regex to avoid expensive backtracking. The
new regex has a different semantics, which is arguably more correct
than the former one. There's absolutely no change in the generated
docs for Scala anyway.
Diffstat (limited to 'test/files/neg/checksensible.check')
0 files changed, 0 insertions, 0 deletions