I have few methods which are indicated as slow by profiler of jvisualvm
Unfortunately, I can't see what can be improved, since methods are
public int getDimensionValue(int index) {
if( !containsDimension(index) ) {
throw new IndexOutOfBoundsException();
}
return delegate.getValue(index);
}
public boolean containsDimension(int index) {
return delegate.contains(index);
}
Suppose contains
is really slow, but how can caller be slow too if it just call it?
Self time
means time without time of callees or including it?