Skip to content

Instantly share code, notes, and snippets.

@spmallette
Last active December 11, 2015 07:38
Show Gist options
  • Save spmallette/4567352 to your computer and use it in GitHub Desktop.
Save spmallette/4567352 to your computer and use it in GitHub Desktop.
//blows heap
engine.eval(String.format("g.v(%s)", ix), bindings);
// does not
engine.eval(String.format("g.v(%s)", (ix % 4) + 1), bindings);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment