Skip to content

Instantly share code, notes, and snippets.

View JaroslavTulach's full-sized avatar

Jaroslav Tulach JaroslavTulach

View GitHub Profile
@JaroslavTulach
JaroslavTulach / Shape.java
Created August 28, 2019 22:43
Demonstrating the usefulness of PGO (profile guided optimizations).
abstract class Shape {
public abstract double area();
public static Shape cicle(double radius) {
return new Circle(radius);
}
public static Shape square(double side) {
return new Square(side);