Posted 9 years ago by Sören Kühnholz
Version: 15.1.0622
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hello,

I have performance problems using the syntaxeditor the first time after start of my application. The code that needs the longest time (800 ms) is the following:

CSharpSyntaxLanguage cSharp = new CSharpSyntaxLanguage();

It only need so long on the first call.

Any ideas?

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Soren,

If it's only happening on the first call, it might be .NET loading the Actipro assemblies required to support that language, of which there are six total (Shared, Text, Text.LLParser, SyntaxEditor, Text.Add-ons.DotNet, SyntaxEditor.Addons.DotNet).  My guess is that's what's taking time.  The only thing you can do to speed up assembly load time is to NGEN the assemblies.  You can search the web for more information on that.

The CSharpGrammar is also being buit and compiled when you make a new language instance.  But that should run pretty quickly and it would be happening on each language creation, so if you only see the slowdown the first time, then that wouldn't be a contributing factor here.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.