[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Syntax Highlighting



Hi Ryan and Frederik,
just committed the patch and the fix ...
Jan
On Dec 1, 2006, at 4:38 PM, Fredrik Olofsson wrote:

hi ryan,
please do.  works great here and it's a lot quicker.

and while you're at it why not implement this tiny fix too?
http://www.create.ucsb.edu/pipermail/sc-dev/2006-September/010995.html

thanks again,
_f

On 01.12.2006, at 12:48, Ryan Brown wrote:

If nobody objects, could someone commit this?

Ryan

On Nov 29, 2006, at 6:00 PM, Ryan Brown wrote:

Attached is a simple patch that improves syntax highlighting performance. Opening a large .sc file (6500 lines) previously took about 10 seconds of beach balling, with the patch it opens instantly. It works by changing the text color via textStorage (rather than the text view) and wrapping the entire colorization loop in beginEditing and endEditing calls. Why this improves performance is documented here: http://developer.apple.com/documentation/Cocoa/Conceptual/ TextEditing/Tasks/BatchEditing.html

I also cleaned up the code a bit.

Ryan

<syntaxColorize.M.patch>


  #|
     fredrikolofsson.com     klippav.org     musicalfieldsforever.com
  |#

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev