ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52096] Add an option to <javac> to suppress creation of package-info.class
Date Thu, 10 Nov 2011 00:06:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52096

--- Comment #11 from Jesse Glick <jglick@netbeans.org> 2011-11-10 00:06:33 UTC ---
(In reply to comment #10)
> Wouldn't opening each
> package-info.java file and scanning it with some regexp take almost as long as
> simply passing the files to javac in the end?

Probably depends on the situation. While javac itself is reasonably fast on
small files, i.e. not much slower than the I/O of loading the file, running
javac incurs two kinds of additional cost:

1. Opening any classpath entries, which may be numerous and/or large.

2. Running any annotation processors, which could be slow.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message