When JDK integrated Remove file seeking requirement for writing a heap dump, it introduced a change in the heap dump writing process. As an implementation detail, the heap dumping code now generates a significant number of short HEAP_DUMP_SEGMENT-s. This change has resulted in a slowdown when opening heap dumps, as the heapDumpSegIterator() function has become quite slow.