Re: Slow ruby syntax highlight with 7.3.1163

2013-06-12 Fir de Conversatie Hiroshi Shirosaki
On Wednesday, June 12, 2013 2:21:55 PM UTC+9, Ben Fritz wrote: On Wednesday, June 12, 2013 12:13:48 AM UTC-5, Ben Fritz wrote: Isn't that first bit much too complicated? Am I missing something, or is this: \%(\%(\.\@!\.\)\@!\|::\)\_s*\zs\%(RUBY_... equivalent to this:

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-12 Fir de Conversatie Doug Kearns
On 12 June 2013 15:13, Ben Fritz fritzophre...@gmail.com wrote: On Monday, June 10, 2013 8:47:35 PM UTC-5, Hiroshi Shirosaki wrote: rubyPredefinedConstant pattern looks much slower with this file. syntime result: :set re=0 TOTAL COUNT MATCH SLOWEST AVERAGE NAME

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-12 Fir de Conversatie Bram Moolenaar
Doug Kearns wrote: On 12 June 2013 15:13, Ben Fritz fritzophre...@gmail.com wrote: On Monday, June 10, 2013 8:47:35 PM UTC-5, Hiroshi Shirosaki wrote: rubyPredefinedConstant pattern looks much slower with this file. syntime result: :set re=0 TOTAL COUNT MATCH SLOWEST

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-12 Fir de Conversatie Ben Fritz
On Wednesday, June 12, 2013 2:30:37 AM UTC-5, Hiroshi Shirosaki wrote: On Wednesday, June 12, 2013 2:21:55 PM UTC+9, Ben Fritz wrote: On Wednesday, June 12, 2013 12:13:48 AM UTC-5, Ben Fritz wrote: Isn't that first bit much too complicated? Am I missing something, or is this:

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Ben Fritz
On Monday, June 10, 2013 8:47:35 PM UTC-5, Hiroshi Shirosaki wrote: Hi, I noticed slowness with the following file with Vim 7.3.1163 regexpengine=0. https://raw.github.com/rails/rails/v2.3.18/actionpack/lib/action_controller/session/abstract_store.rb rubyPredefinedConstant pattern looks

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Bram Moolenaar
Hiroshi Shirosaki wrote: I noticed slowness with the following file with Vim 7.3.1163 regexpengine=0. https://raw.github.com/rails/rails/v2.3.18/actionpack/lib/action_controller/session/abstract_store.rb rubyPredefinedConstant pattern looks much slower with this file. At what position in

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Hiroshi Shirosaki
On Wed, Jun 12, 2013 at 12:37 AM, Bram Moolenaar b...@moolenaar.net wrote: Hiroshi Shirosaki wrote: I noticed slowness with the following file with Vim 7.3.1163 regexpengine=0. https://raw.github.com/rails/rails/v2.3.18/actionpack/lib/action_controller/session/abstract_store.rb

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie glts
On Tue, Jun 11, 2013 at 5:18 PM, Ben Fritz fritzophre...@gmail.com wrote: That pattern contains a few patterns using \@! which can only match one or two characters before. They should probably be explicitly limited like \@2!. I think performance of patterns like this is the reason the

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Ben Fritz
On Monday, June 10, 2013 8:47:35 PM UTC-5, Hiroshi Shirosaki wrote: rubyPredefinedConstant pattern looks much slower with this file. syntime result: :set re=0 TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN 0.073358 1870 0.0015260.000392

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Ben Fritz
On Tuesday, June 11, 2013 2:50:12 PM UTC-5, glts wrote: On Tue, Jun 11, 2013 at 5:18 PM, Ben Fritz fritzophre...@gmail.com wrote: That pattern contains a few patterns using \@! which can only match one or two characters before. They should probably be explicitly limited like \@2!. I

Re: Slow ruby syntax highlight with 7.3.1163

2013-06-11 Fir de Conversatie Ben Fritz
On Wednesday, June 12, 2013 12:13:48 AM UTC-5, Ben Fritz wrote: Isn't that first bit much too complicated? Am I missing something, or is this: \%(\%(\.\@!\.\)\@!\|::\)\_s*\zs\%(RUBY_... equivalent to this: \%([^.]\.\_s*\)\@!\%(RUBY_... ? Well, it's not quite equivalent. For example

Slow ruby syntax highlight with 7.3.1163

2013-06-10 Fir de Conversatie Hiroshi Shirosaki
Hi, I noticed slowness with the following file with Vim 7.3.1163 regexpengine=0. https://raw.github.com/rails/rails/v2.3.18/actionpack/lib/action_controller/session/abstract_store.rb rubyPredefinedConstant pattern looks much slower with this file. syntime result: :set re=0 TOTAL COUNT