extreme slowness/unusable with certain ruby syntax

I have a 300 line or so file full of statements like this:

rule(:function_declaration) do
    `function`.as(:st) >> sp >> ident.as(:name) >> sp? >> `(` >> sp? >> (formal_parameter_list >> sp?).maybe.as(:args) >> `)` >> sp? >> `{` >> sp? >> function_body.as(:body) >> sp? >> `}`
  end

This completely bogs down Rubymine after a very short time span, to the point where doing pretty much anything takes 4-5 seconds.  

Chris

8 comments
Comment actions Permalink

I've just created such file and I don't notice slowness (RubyMine 3.2 beta). Could you capture a CPU snapshot (see instructions at http://devnet.jetbrains.net/docs/DOC-1144) ?

0
Comment actions Permalink

It seems to take a few minutes of use to show up,  it doesn't happen by just opening the file you need to make some edits.  But it's very consistent after a few minutes of editing it goes south.  Happens at work and home, and these are higher end boxes core I7, 12gb ram, 10k rpm drives.  I'll do a cpu snapshot later when I get home.

Chris

0
Comment actions Permalink

My file is still opened. My file consist of that 3 lines copied about 100 times. Probably I need more complicated example. I've check RubyMine 3.1.1 and RubyMine 3.2 Beta, looks ok.

0
Comment actions Permalink

I don't think, it's e special problem with this syntax.
In my bigger application with "normal" ruby code, the IDE is hanging, too (in all three 3.2 EAP versions).

I uploaded a cpu snapshot and sent a mail to support - and now I have to go back to 3.1.1 :-(

0
Comment actions Permalink

Chris,

Which OS do you use?

0
Comment actions Permalink

I'm on windows 7 prof.  Didn't get a chance last night to get the cpu dump got home late.   

Chris

0
Comment actions Permalink

Ok, we are still waiting for it =)

0
Comment actions Permalink

Hi neogrande,

Oleg checked your snapshot seems you need to wait until our 4.0 EAPs with rewritten code insight engine.

0

Please sign in to leave a comment.