This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Many languages e.g. XML do fold changes in a way 1) remove all existing folds 2) add all fresh new folds typically after a reparse after certain delay. This fold change however triggers e.g. a rebuild of paragraph views of the view hierarchy spanning first to last folds i.e. typically almost the whole document. I could distil the real changes in the FoldViewFactory but imho this information would be more useful in the FoldHierarchyEvent or somewhere in a Fold API so that it could be inspected by other Fold API clients too.
This "feature" in XML is known for a long time, however unattended. Code Folding already contains an API that 'updates' folds - matching folds using structure, position and kind. Did you observe the bad behaviour on a language other than XML - which one ? Java and CSL-based languages (HTML, XHTML, JS, PHP) should be OK alreayd