2009/7/30 Jean-Philippe Bernardy <jeanphilippe.berna...@gmail.com>: ... >> IIRC, Yi.Vty.drawText (which basically takes a string and decides >> where each character should go on a 80x24 console) typically takes >> more than 50ms. So either it needs to be optimized by memoizing the >> layout information, or cursor movements should not cause drawText to >> be called. > > How did you measure this? I'm very surprised that this (relatively simple) > function would take so much time.
I was also surprised but drawText shows up as the first cost centre on the yi.prof I attached to comment 13 on the #265 bug report. I found that removing functionality from drawText made a noticeable impact on drawing speed, compiling without debugging and profiling. This was a couple of months ago; I'll try to do some better tests when I have some free time. --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---