From ono@java.pl Wed Feb 27 11:52:03 2008 From: Adam Strzelecki To: textmate@lists.macromates.com Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line Date: Wed, 27 Feb 2008 12:51:56 +0100 Message-ID: <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> In-Reply-To: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6004906916992444759==" --===============6004906916992444759== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, I've sent a mail to Allan regarding the problem, but I want to share also this problem with all of you subscribed to the TM list. Maybe you have also encountered this? I'm working with few auto-generated FO (XML) files that have no line- breaks. You can reproduce such dummy file with: $ cd /tmp $ perl -e '{print "" x 20000}' > test.html $ mate test.html As you see TM gonna take 100% CPU for a really long-long while until you get syntax highlight. Also any modification (line-break) causes TM to take again 100% CPU for a while. I'm aware it is rare case to work with such files, but is there any remedy for this problem? I have soft-wrap turned on, also using System Monitor I can see that it is tokenizer thread that is taking the whole CPU. Regards, -- Adam Strzelecki |: nanoant.com :| --===============6004906916992444759==--