commit | f1785daee4bc6e01623be6fc0e0047643df6a3e1 | [log] [tgz] |
---|---|---|
author | jkubitz <jkubitz-eclipse@gmx.de> | Wed Mar 10 16:58:10 2021 +0100 |
committer | Andrey Loskutov <loskutov@gmx.de> | Wed Jun 16 02:13:53 2021 -0400 |
tree | 3c896ce4a995a2569380516f50bfebb2dd54cd52 | |
parent | ee89b4d7443cf6acc84cd21621ba6af3060c542e [diff] |
Bug 569069 - [performance] Optimize HashtableOfPackage Replace HashtableOfPackage with HashMap HashtableOfPackage is a hotspot during compilation. get() time is reduced from ~5ns to ~3ns for empty maps get() time is reduced from ~14ns to less then ~12ns for non empty maps at the cost of an additional Object allocation. The CharArrayMap grants a smooth transition between empty map performance and large map performance for >5 elements. Bug: 569069 Change-Id: I45df9ee3118093e64a68aa3a547bd1a7764699db Signed-off-by: jkubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/177529 Tested-by: JDT Bot <jdt-bot@eclipse.org> Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
This is the core part of Eclipse's Java development tools. It contains the non-UI support for compiling and working with Java code, including the following:
For more information and important links, refer to the [JDT wiki page] 1 or the [JDT project overview page] 2.