FLTK logo

Re: [fltk/fltk] test/tree: hitting 'select all' hangs the application (Issue #300)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] test/tree: hitting 'select all' hangs the application (Issue #300) erco77 Nov 29, 2021  
 

Yes, thanks Manolo, I found there's a few issues that I can maybe optimize in Fl_Simple_Terminal too; there's three calls that seem to use a lot of CPU, and are called each time its printf() method is called:

  • buffer->append() -- appends the string to the buffer, causing a recalc
  • scroll(newpos) -- forces scrollbar to bottom, but ALSO causes an entire buffer recalc
  • A remove() operation to enforce the screen history size (ALSO causes a buffer recalc)
    I'm not sure how I can optimize all that though.. it'd probably be easier to implement the terminal code myself rather than try to fix Fl_Text_Editor lol.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.