Posted 9 months ago by Miguel A.
Version: 18.1.0673
Platform: .NET 4.7
Environment: Windows 10 (64-bit)
Avatar

Hi,

I use the XML addon and load a large >100mb xml file with LoadFile. It takes a while but that's okay. When its loaded and I want to edit a value of a xmlnode it takes forever to display.

For example

<message text="Hello"/>

I select 'H' from hello and enter a new character. It takes up to 2 minutes for the editor to update. I thought it might be completion provider so I tried unregistering the following services but that didn't helped:

editor.Document.Language.UnregisterService<IEditorDocumentTextChangeEventSink>();
editor.Document.Language.UnregisterService<XmlCompletionProvider>(); ;
editor.Document.Language.UnregisterService<XmlQuickInfoProvider>(); ;
editor.Document.Language.UnregisterService<SquiggleTagQuickInfoProvider>();

Any idea?

Comments (2)

Answer - Posted 8 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Miguel,

The parser will undoubtedly cause delays, along with the subsequent outlining logic trying to use parser data.  Perhaps try unregistering the parser and that might give you a good speed boost.


Actipro Software Support

Posted 8 months ago by Miguel A.
Avatar

All I needed for these large files are syntax highlighting, but I saw that VS code and VS both disable syntax highlighting as well for large files so I just disabled it completely, now it runs fine.

The latest build of this product (v2019.1 build 0682) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.