Brandon.  This pit is just getting deeper and deeper.  When are you
going to give up?

On Mon, Jul 23, 2012 at 10:55 PM, Drake <[email protected]> wrote:
> Really?
>
> You don't think that doing lazy class loads would speed up your startup?

The JVM lazy loads classes automatically.  This is just how it works.

> Did you benchmark Dotted Imports vs full import, or "less dotted"?  I
> knocked 1s of the startup just by * importing objectify, that you took all
> of but did so in 6 places.

Wow, I even gave you the answer ahead of time, and you *still* jumped
into the trap.

Here's a little experiment for you:

------ File m1/Main.java -----
import java.util.*;

public class Main {
        public static void main(String[] args) {
                System.out.println(new Date() + ":" + new Random().nextInt());
        }
}
------ File m2/Main.java -----
import java.util.Date; import java.util.Random;  // on same line so
line# info doesn't change

public class Main {
        public static void main(String[] args) {
                System.out.println(new Date() + ":" + new Random().nextInt());
        }
}

Notice that the only difference is the wildcard import vs the
fully-qualified import.

Compile each.  Diff the resulting classfiles.

Good work on that startup time improvement.

I'm pretty much done here.

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to