On Wed, May 16, 2018 at 12:17:45PM +0200, Sven Joachim wrote:
> On 2018-05-16 04:34 -0400, Thomas Dickey wrote:
...
> Thanks, that helps. :-)
> 
> > f-irc, by the way, hits that function about a hundred times more than
> > the worst-case (7.2 million versus 65 thousand).
> 
> Yes, the double loop in init_nick_colorpairs() is horribly inefficient.

agreed - I tried tracing it to see the function-calls and got a large
trace-file.

> Try to start f-irc with TERM=xterm-direct, I killed it after two
> minutes of using 100% CPU.

I don't think I can make compensating improvements in ncurses to fix this :-)
 
> > The usual application won't do anything like that...
> 
> There's a reason why nobody had noticed the problem earlier, I guess.

right - a normal application would initialize the color pair (unless
they were explicitly using the "RGB" extension).

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature

Reply via email to