jbehave-eclipse-plugin icon indicating copy to clipboard operation
jbehave-eclipse-plugin copied to clipboard

With a lot of defined steps, the editor has lags on every key stroke

Open theo-h opened this issue 13 years ago • 4 comments

first: thanks for the great plugin!

Having a project with a lot of steps (~250 real steps and ~150 aliases), there is a noticeable lag on every keystroke within a story file.

Even small stories, like:

Narrative:
In order to demonstrate the lags on every input
As a jbehave user
I want to create a rather long story file

Scenario: 1

Given the page Report Definition is initialized
When the user clicks on the Remove icon for the report Report1
And the user clicks on the Create button
And the user activates the checkbox checkbox2
Then the spreadsheet selection shows the message this is the message ...!!!´´´

result in lag of about 0.3 seconds on every key stroke. Having more complex stories (using more steps), the length of the lags grow up to several seconds.

I've enabled the loggers on "TRACE"-level, and it seemed to me, that the whole structure of the story file is evaluated on every key stroke. It would be nice, to have the opportunity, to perform these lookups/checks/formattings only after a linefeed.

best regards, Theo

theo-h avatar Jun 26 '12 12:06 theo-h

Thanks for your feedback, I'll definitively look at your issue and make it more performant, probably by verifying all these once the file is Saved only. I need to investigate where the time is spent. I'll keep you inform

Arnauld avatar Jun 28 '12 06:06 Arnauld

it seemed to me, that the whole structure of the story file is evaluated on every key stroke.

You're right, that was the simplest approach (at least due to my Eclipse knowledged) to ensure syntax coloring is performed well.

Arnauld avatar Jun 28 '12 06:06 Arnauld

I also have dreadful performance issues with your plugin :-/ I would really like the option to have the plugin's slow operations to happen only when saving the file

mryan43 avatar Aug 31 '12 13:08 mryan43

I'm currently working on improving Intellij's plugin. Once, it is stable enough, i'll take time to fix your pains. Please note, that the main repository has moved to: https://github.com/jbehave/jbehave-eclipse

Arnauld avatar Sep 01 '12 10:09 Arnauld