According to an email I received from Peter Haggar (author of Practical
Java: Programming Language Guide). The use of implicit imports have no
effect on the performance as it is only used during compile time. It seemed,
according to the email (which i unfortunately lost), that the use of
implicit vs explicit is mainly a programmer preference.
To see a copy of his latest javalive chat session, go to:

http://developer.java.sun.com/developer/community/chat/JavaLive/2001/jl0131.
html
(Java Developer Connection login required.. free)
It might debunk alot of myths including the stupid which is faster while or
for loop question.
(I've actually done thousands of tests on these 2 because an idiot manager
insisted one was faster than the other).

BTW. Peter Haggar is a great guy. He answered my email quickly and was very
very detailed about it. Not very many authors would take the time to do
that. The chat has a link to his email address.

-Tim

-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 17, 2002 10:29 AM
To: [EMAIL PROTECTED]
Subject: Class Loader Performance Question


Anybody have an idea on the performance hit that might be taken by a
high-volume app server running classes with explicit imports rather than
wildcard imports?

For example,

    import javax.servlet.http.HttpServletRequest;
    ....
    import org.apache.struts.action.Action;
    ....
    import org.apache.struts.util.PropertyUtils;
    ....

as opposed to

    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    import org.apache.struts.util.*;

Cheers!
Mark

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to