Skip to content

Instantly share code, notes, and snippets.

@franz1981
Created September 16, 2018 17:10
Show Gist options
  • Save franz1981/25fa5c66c44fa897ef1833441eca0a58 to your computer and use it in GitHub Desktop.
Save franz1981/25fa5c66c44fa897ef1833441eca0a58 to your computer and use it in GitHub Desktop.
flames_ex.java
public static void main(String[] args) {
//WARMING UP a()
//....
for (int i = 0; i < Integer.MAX_VALUE; i++) {
a();
}
}
private static void a() {
b();
h();
}
private static void b() {
c();
}
private static void c() {
d();
}
private static void d() {
e();
f();
//HEAVY PROCESSING
}
private static void e() {
//HEAVY PROCESSING
}
private static void f() {
g();
}
private static void g() {
//HEAVY PROCESSING
//HEAVY PROCESSING
}
private static void h() {
i();
}
private static void i() {
//HEAVY PROCESSING
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment