It's slow because of the code quality inspections. You can override these per file by clicking the Sherlock Holmes icon in the statusbar.
His name is Hector the Inspector.
Re:Friends don't let friends use Eclipse
by teawrecks on Tuesday November 12, 2013 @02:08PM
(#6720098)
I was working with a 50k line JS file the other day (compiled ember project) and opened it in Sublime. The difference in time between opening a 50k line file and a 5 line file is a little less than half a second. Otherwise, performance is identical.
But Sublime is not an IDE, it's a text editor.
Gotta ask. Why do you have a 12K line JS file?
Re:Friends don't let friends use Eclipse
by davidjgraph on Tuesday November 12, 2013 @12:11PM
(#6719061)
Because it's a relatively large JavaScript library. Total line count is in the several hundreds of thousands.
The file in question is for this class http://jgraph.github.io/mxgraph/docs/js-api/files/view/mxGra....
1) It's the main public API to the the library, there's no logical way to split it.
2) We'd have a couple of thousand, very-annoyed-cos-they-paid-quite-a-lot-for-it customers, frankly, go apeshit if we split the file and broke their app on the next update because we wanted to switch IDE...
This is a third party library or your own? Why can't you break it into multiple files and concat them with a build step?
Re:Friends don't let friends use Eclipse
by philliphaydon on Tuesday November 12, 2013 @12:22PM
(#6719165)
He could if he wanted to, but he doesn't want to have a maintainable library.
To clarify, you feel that using Eclipse is more work than breaking a file into multiple shards and setting up a build process to recombine them?
(I'm not trying to be snarky and I apologize if the above comes off that way.)
Well yeah, if you have to use one specific editor because the file is larger than most can handle that should be a signal that the file is the problem.
I for one think that developing a project in multiple files that can all be understood on their own is the only sane way to develop at all, regardless of editor choice.
Re:Friends don't let friends use Eclipse
by WalterSear on Tuesday November 12, 2013 @01:57PM
(#6720002)
Contemporary javascript development without a build step?
Re:Friends don't let friends use Eclipse
by nickdoesdesign on Tuesday November 12, 2013 @12:48PM
(#6719368)
Even if it isnt a part of the normal build, a separate one that does that would help immensely. AMD makes this ridiculously easy, and grunt etc will help him even further.
Re:Friends don't let friends use Eclipse
by hawleyal on Tuesday November 12, 2013 @01:10PM
(#6719540)
You need modules
Re:Friends don't let friends use Eclipse
by shousper on Tuesday November 12, 2013 @04:28PM
(#6721280)
This is probably abundantly clear, but someone has to say it. You need to refactor that beast and split it out into separate files for development. Add a build process to smash it all together for you. End of story.
Inability to be able to effective edit my files is a major problem, though I'm interested if anyone knows how to speed WebStorm up for JS files. If that were resolved I'd be very happy to switch to flee Eclipse's git functionality.
Before someone says it "reduce the size of the file" is not an answer. In answer to split the file and re-make it in a build step, why on Earth should I have to get around a shortcoming in a tool? Tools are there to make me more productive, not dance when the music starts.