Skip to content

Instantly share code, notes, and snippets.

View jmiettinen's full-sized avatar

Jarkko Miettinen jmiettinen

View GitHub Profile
@headius
headius / gist:3758342
Created September 20, 2012 21:02
Startup times for base and loading ActiveRecord on JDK7 an JDK8 with various flags
Java 7 does not currently have tiered compilation on by default, and we do not enable invokedynamic.
Default settings (no indy, no tiered)
system ~/projects/jruby $ (pickjdk 4 ; time jruby -e 1)
New JDK: jdk1.7.0_07.jdk
real 0m1.255s
user 0m1.953s
sys 0m0.084s
@etorreborre
etorreborre / gist:1387113
Created November 22, 2011 21:50
An example of a non-terminating compilation with javac
/** from http://www.reddit.com/r/programming/comments/mlbna/scala_feels_like_ejb_2/c31z0co */
interface Pong<T> {}
class Ping<T> implements Pong<Pong<? super Ping<Ping<T>>>> {
static void Ping() {
Pong<? super Ping<Long>> Ping = new Ping<Long>();
}
}
> javac Ping.java