Search code examples
delphiviewertrichedit

Delphi lines colored Text component replacing TRichEdit to improve performances


I currently use TRichEdit as an 'real time' event log viewer in one of my software (in Delphi 7) and I recently profile my software and TRichEdit is consuming more than 40% of the software cpu time.

I just want to test other components in order to compare performances, this component must have :

  • Line Coloring (it may be LINE syntax color, since different colors lines have different prefixes Or HTML coloring etc.).
  • Easy Save to file function (to RTF or to HTML).
  • Free or Open source.
  • Good perf. even for 'large files' (may be 200 Mo) as viewer.

Info : I yet look at this post but without good answer for me.


Solution

  • Check out TConsole / TColorConsole circa 1996: http://www.torry.net/authorsmore.php?id=604

    It doesn't do HTML, it doesn't do RTF, but it does do scrolling colored text pretty darned fast. ;>