RSyntaxTextArea 在OS X下 css背景渲染速度非常慢的bug
很久就发现了一个RSyntaxTextArea在OS X下加载某些脚本文件的时候非常卡,不知道是什么原因。最近终于忍无可忍了跑去问了下RSyntaxTextArea作者得知这个bug已经在RSyntaxTextArea的最新版修复了。
问题大概发生的情况是:setSyntaxEditingStyle为SYNTAX_STYLE_JSP,然后jsp当中包含了如下css样式字符串如:
body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;} body {background-color: #ffffff;color: #000000;}
加载或者点击鼠标的时候会一阵狂卡,让人无法人无法忍受。
修复后的版本下载:RSyntaxTextArea.2.5.6.jar