This bug was originally marked as duplicate of bug 181584, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X
stjohnjohnson: Typing & in an alt tag in HTML 5
Maximum slowness yet reported was 3142 ms, average is 3142
Created attachment 105226 [details]
Seems like a JDK problem - 16 calls to java.awt.FontMetrics.getStringBounds(...) took 2988 ms (as can be seen from the attached NPS snapshot). That's strange. Are you experiencing similar problems often while invoking code completion?
OOPS - incorrectly marked as FIXED.
*** Bug 194575 has been marked as a duplicate of this bug. ***
It's happened a few other times, but nothing I could directly figure out. Usually only during HTML completion