Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Run As JUnit Test - Create Type Hierarchy performance
  • From: "Milles, Eric (TR Technology)" <eric.milles@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 28 Apr 2022 22:58:17 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=thomsonreuters.com; dmarc=pass action=none header.from=thomsonreuters.com; dkim=pass header.d=thomsonreuters.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PQ/Yek4XEbSYOJ9+NyOX9D0F/a8gwG6Z6hF3ZJMy9iM=; b=HW8y1Fs51URS1U+7fdlFKRj4yiWOPvdovoFrCJ+M5vA1+eZN+Z/lyKchag73aIj8weePjrpxTA5SLuuPFMtnl/HzQgkEN8FTz7lGgbN3Qj+npzVyeZH94FVTEDWv7Yq9qnvw+XJHZAd2/IlrLkYDgTcpS6j/GFOW0G2Q6iKYj0PJYaIM6ElnxiNXt5jh/dODAoPyWPRi31JR86y3iu2CEw08Cx6DlGvG5A3OYyAWlEq6s1Pftd5F/OmXjEdrm6+b71/bDuwRd13eZB6TYFoMM9i1Z5kdzep6aEoSYvZNrRExr2WnsLFLCn2gteHYdNOK7+kqSydNaIJUSt6pIJqZxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H6vEkOHFfxmEBhNMQwwOyvdhEUFBZ9nhPSil0jPqwM06cBCDgPZFyBn3knV22IAz24YaFaNupb9AmkzTr9+0BM7AK8YA4HTMB/9frRci1c8cpCbt6Dot0wSqM5wWYNW9uZ0x79IXCEJj4aH/lIZcIG3LJiybX38zjBY/uDezbhcYVFrUqgAPqc0jeS5+X/LdoMPn3evie+iBTHz6hlr0Tj2jwjL29CbhzGi+eA62RX1bMmcPdtzd9WC+pK/LFoUEZVa1s/r6vRobbZt+Hx1Q9Qb6LDAVlVqgMLgn2632b/UAbe6Io4osIU3jNib3OSZlqgYXFde0NA7AE+p7d5VaBw==
  • Delivered-to: jdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jdt-dev/>
  • List-help: <mailto:jdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdhbT5wy1loTKNd2Qw6UgeeBB+LysQ==
  • Thread-topic: Run As JUnit Test - Create Type Hierarchy performance

JDT team,

 

Does anyone know of a change from Eclipse 4.8 or 4.9 timeframe that would have stopped packages or compilation units from filling the JavaModelCache (managed by JavaModelManager)?  Is there any reason why after compilation of a source file it should not have its java elements cached in the model?

 

 

I have been investigating slow down in JUnit launch on and off for some time.  There is much more detail in this bug ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=540712

 

Long story short, Create Type Hierarchy takes very long (over 216 seconds for one of my projects).  The second time around, it runs in much less time (~18 seconds) due to something being cached by the type hierarchy builder.  In the case of a larger java project, the time to launch just after compilation is over 20 minutes!  And is about 2 minutes for each subsequent launch.

 

I was finally able to see that JavaModelCache is populated with packages, compilation units, etc. (their children).  Something changed between Eclipse Neon (4.7) and Photon (4.9) -- according to the ticket.  I was able to force the population for each compilation unit in AbstractImageBuilder when ClassFiles are accepted and the time went down to match the cached/second run of Run As > JUnit Test.

 

 

I appreciate your time in considering this issue.  And thanks to all who support JDT.

 

Eric Milles

Lead Software Engineer - Thomson Reuters

Member - Eclipse Foundation, Apache Foundation

This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website: https://www.thomsonreuters.com/en/resources/disclosures.html

Back to the top