o Marked potential performance problem

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757900 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-03-24 16:48:29 +00:00
parent 22562724da
commit f5c0ef6ecc
1 changed files with 4 additions and 0 deletions

View File

@ -334,6 +334,10 @@ public class MavenProject
{
if ( parent == null )
{
/*
* TODO: This is suboptimal. Without a cache in the project builder, rebuilding the parent chain currently
* causes O(n^2) parser invocations for an inheritance hierarchy of depth n.
*/
if ( parentFile != null )
{
try