As far as I understand, every time when i'm modifying PSI tree, it's being at least syncronized with document. I'ts fine and consistent, but if i need to make let's say 100 modifications in a row, process works really slow.
Is there a way to modify PSItree transactionally, make all modifications, than do all extra operations, like syncing with document?
Problem: i have a code style settings that may play with Perl code and modifications being done using Preformatter. And if file is large and there are lot of modifications, UI freezes for few seconds. Want to fix this.