[Gambas-user] TextEditor init time

Bruce Steers bsteers4 at gmail.com
Wed Jan 17 14:22:37 CET 2024


Is it possible to speed up the init time of a TextEditor a bit?

I did a couple of quick tests with this code that creates a fresh TextArea
or TextEditor with no text loaded, just an empty control, TextArea takes
like 1.5 seconds...

Public Sub Form_Open()

Dim d As Date = Now

'  Dim t As TextArea = New TextArea(Me)
  Dim t As TextEditor = New TextEditor(Me)
  t.Expand = True

  Debug DateDiff(d, Now, gb.Millisecond)

End

TextArea init time: 35 ms
TextEditor init time: 1576  ms

I've attached a profile output snapshot that might help identify a possible
speedup. the TextEditor_ResizeContents seems to be what causes the lag.

Thanks in advance for any tweaks :)
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240117/da19c715/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.jpg
Type: image/jpeg
Size: 153468 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240117/da19c715/attachment-0001.jpg>


More information about the User mailing list