Scintilla.NET slow loading
I'm using Scintilla using the .NET wrapper, named Scintilla.NET. When creating an instance of it, i.e.:
Dim c As New ScintillaNet.Scintilla
Me.Controls.Add(c)
it takes almost a complete second to load the first time. Other times it is about 150 ms. Actually, this is not really acceptable in my situati开发者_如何学JAVAon as loading e.g. 10 files at once takes almost two seconds.
Is it true that Scintilla (or Scintilla.NET) is slow, or am I doing something wrong?
I wouldn't say that Scintilla is slow. If is slow only the first time you create the control, this might be because the Scintilla.dll is loaded then, and the 1 second you experience might be the time needed by the system to load the dll.
If this is the case, I suggest you load the dll (by creating a dummy control) when your application starts (on splash screen for example) - if this is acceptable in your scenario.
精彩评论