Skip to content

Instantly share code, notes, and snippets.

Philip John Roman PhilipRoman

Block or report user

Report or block PhilipRoman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
PhilipRoman /
Last active Apr 21, 2018
Java performance anomaly: the loop with 'beta' method is 2x slower than loop with 'alpha' even though the methods are identical.
import java.lang.reflect.Field;
import java.nio.ByteBuffer;
public class Main {
private static final int N = 1_000_000;
private static Field stringBytes;
private static String testString;
static {
// setup test string:
You can’t perform that action at this time.