NSLogger icon indicating copy to clipboard operation
NSLogger copied to clipboard

Speed up message cell text size evaluation and display

Open fpillet opened this issue 15 years ago • 0 comments

Huge logs come with a price tag: performance degrades when loading large log files or resizing the window, as the software has to recompute the best size for message cells. Layout is currently slow because using NSString's boundingRectWithSize: which has to recreate a layout manager everytime we have to compute a size.

Solutions are:

  • During cell size calculation, provide a layout manager where we just update the text, quickly compute its height and reuse the manager as much as possible
  • Switch to CoreText for calculation and display.

fpillet avatar Jan 09 '11 10:01 fpillet