Open GoogleCodeExporter opened 9 years ago
A first attempt.
The “old” implementation:
public boolean isList() {
return (name.equals(".") && arity == 2 && arg[1].isList()) || isEmptyList();
}
The changed implementation:
private Boolean isList;
public boolean isList() {
if (isList == null){
isList = (name.equals(".") && arity == 2 && arg[1].isList()) || isEmptyList();
}
return isList;
}
After these changes the performance was extremely better. But the results look
different.
Original comment by AleMont...@gmail.com
on 13 Sep 2012 at 3:02
Original issue reported on code.google.com by
AleMont...@gmail.com
on 13 Sep 2012 at 2:59