Fast Java implementation of the Hamster gem (for JRuby)