Currently JavaClass.getInstances() starts search for instances at the beginning of instance dump segment. It is possible to remember offset of the first instance and start search from that offset. This will improve performance of JavaClass.getInstances() on big heap dumps for classes with instances, which are close to each other and for all classes with one instance.
Fixed in profiler-main
user: Tomas Hurka <firstname.lastname@example.org>
date: Thu Aug 08 11:02:46 2013 +0200
summary: bugfix #234123, search for the instances from the offset of the first instance
Integrated into 'main-silver', will be available in build *201308182300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Hurka <email@example.com>
Log: bugfix #234123, search for the instances from the offset of the first instance