|
Java 8
Jul 16, 2015 5:21:16 GMT -8
Post by Jarrod Torriero on Jul 16, 2015 5:21:16 GMT -8
I just thought I should post here that I was able to get a 5% to 10% speed increase across the board (most games around 10%, a couple around 5%, but every game I tested showed SOME improvement) just by changing the Eclipse compiler to use Java 8 instead of Java 7. To get it to work, I had to add the following access rule for the Java 8 JRE in the build path: Accessible: com/sun/net/httpserver/**
Not a huge speed boost, but an extremely cheap one for anyone who hasn't done it already and doesn't have some reason not to.
|
|
|
Java 8
Jul 16, 2015 11:15:05 GMT -8
Post by alandau on Jul 16, 2015 11:15:05 GMT -8
I was recently considering setting GGP-Base to require Java 8 by default. Oracle has stopped providing updates for Java 7 to the public, and there have been major security holes patched since then. (Sure, those apply to the JRE used in the browser and not the JDK, but it might encourage upgrades anyway.)
There are also several significant new language features (the biggest changes since Java 5) that could be useful in GGP-Base development, and certainly player development. I'm already using them in Alloy.
We should avoid using the com.sun classes anyway, which are considered not public API and therefore subject to breaks in future versions. I'm of the opinion that the LocalGameRepository shouldn't be starting up a servlet anyway, but Sam disagrees. If it does, though, it should probably be using Jersey, not com.sun classes.
|
|
|
Java 8
Jul 16, 2015 12:36:27 GMT -8
Post by Steve Draper on Jul 16, 2015 12:36:27 GMT -8
We should avoid using the com.sun classes anyway, which are considered not public API and therefore subject to breaks in future versions. I'm of the opinion that the LocalGameRepository shouldn't be starting up a servlet anyway, but Sam disagrees. If it does, though, it should probably be using Jersey, not com.sun classes. Who'd do a thing like that? (<cough> Unsafe <cough>). Well, it IS a rather useful static class ;-)
|
|
|
Java 8
Jul 18, 2015 13:01:58 GMT -8
Post by alandau on Jul 18, 2015 13:01:58 GMT -8
Yeah, I think it's safe to say the com.sun stuff will be unavailable in Java 9...
|
|