blessed icon indicating copy to clipboard operation
blessed copied to clipboard

Textbox slow in remote stream

Open LexSerest opened this issue 8 years ago • 4 comments

Is it possible to speed up textbox somehow, if a remote stream is used?

LexSerest avatar Mar 12 '18 15:03 LexSerest

+1. I'm also running into seemingly high cpu utilization for the methods insertLine / setContent. Every function call always ends up recalculating the entire element: insertTop -> insertLine -> setContent -> parseContent. Possible to reuse the work performed in prior steps?

panupan avatar May 30 '18 07:05 panupan

@LexSerest btw, if you're using insertLine and only want to show the visisble portion of the container, one workaround I found worked is to delete the lines that overflowed out of the container. seems they are being kept in memory and being recalculated even it isn't visible.

panupan avatar May 30 '18 07:05 panupan

@panupan I've done a patch for incremental rendering at astefanutti/kubebox@7d95f45ba35749b0d1cf11cb0d68c759005c6e88. The patch is applied to the log widget but it should work for any Textbox.

astefanutti avatar May 30 '18 08:05 astefanutti

@astefanutti thank you! that patch lowered my cpu utilization by at least 90%, exactly what I was looking for.

panupan avatar Jun 03 '18 07:06 panupan