diff options
author | Joerg Kubitz | 2021-09-01 10:28:55 +0000 |
---|---|---|
committer | Gayan Perera | 2021-10-12 17:17:54 +0000 |
commit | 9525f3eec57b403f918771025f4280bba56b1221 (patch) | |
tree | 466d27c5f914442abb18619110d43fa9fe0c48eb /org.eclipse.jdt.core.formatterapp | |
parent | dd4b2f42ec36c54ae2ee0e63414fc8b98a383188 (diff) | |
download | eclipse.jdt.core-9525f3eec57b403f918771025f4280bba56b1221.tar.gz eclipse.jdt.core-9525f3eec57b403f918771025f4280bba56b1221.tar.xz eclipse.jdt.core-9525f3eec57b403f918771025f4280bba56b1221.zip |
Bug 575733 - refactored Scanner/PublicScanner char deduplication
Scanner.<init>() [initial filling of this.charArray_length] took more
time then all the optimizedCurrentTokenSource* methods together.
This was a hotspot when (for example xtext) created a new scanner for
each class.
Now use a single shared deduplicationpool per thread - which only needs
to be initialized once per thread.
+also deduplicate all single Ascii chars.
Change-Id: I3ee49cb1a4b0543c82d9c0e2214328aa12613309
Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de>
Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/184844
Tested-by: JDT Bot <jdt-bot@eclipse.org>
Reviewed-by: Gayan Perera <gayanper@gmail.com>
Diffstat (limited to 'org.eclipse.jdt.core.formatterapp')
0 files changed, 0 insertions, 0 deletions