Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Blewitt alblue

View GitHub Profile
@alblue
alblue / Moved
Last active Feb 16, 2020
Demonstration of JMH and StringBuilder/StringBuffer performance - original blog at http://alblue.bandlem.com/2016/04/jmh-stringbuffer-stringbuilder.html
View Moved
This project has moved to https://github.com/alblue/com.bandlem.jmh.microopts
View Main.java
package foo;
import java.lang.reflect.Method;
public class Main {
public static boolean TEST_REFLECTION = false;
public static void main(String[] args) throws Exception {
System.out.println("Instantiating Target");
Target target = new Target();
@alblue
alblue / X.java
Created Oct 4, 2015
Simple testcase to determine if inner classes or lambdas take up more space
View X.java
package foo;
public class X {
public static final Runnable y = new Y();
public static final Runnable z = new Z();
static class Y implements Runnable {
@Override
public void run() {
@alblue
alblue / .gitignore
Created Feb 12, 2012
RSS Importer for Jekyll
You can’t perform that action at this time.