-
- Downloads
Part of solution to performance problems ftn-setup.js and xtrn-setup.js
where Display.prototype.__getUpdateList__ was taking > 1 second on an rPi3: We need to avoid using Frame.clear() which invalidates the entire frame and requires an update check of every cell (e.g. thousands in a typical frame). So we're going to depend on Frame.cleartoeol() which needed its own optimization to invalidate every cell of the current line even when the cells were already blank (undefined). So only mark the cells for update if they actually have data in them that is being cleared. Also, the putmsg() method was taking on a CRLF to the output string when word-wrap was enabled. So removing the trailing whitespace after word wrap does its thing. If this breaks other scripts, then perhaps we need to restore the original CRLF on the end of the word-wrapped string, but *only* if there was a CRLF on the end of the original string to begin with.
Please register or sign in to comment