Over a million developers have joined DZone.

Eclipse Editor Scalability

· Java Zone

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

In Eclipse opening a large file might cause the following dialog:

What does this mean? Well, Eclipse does a lot behind the scenes with source files. And this includes Eclipse Indexer, Outline View or Syntax Coloring.

The drawback of all these great features is: it does not make the Eclipse framework faster. The Eclipse IDE with its Java foundation is in my view the best IDE in the world, but unfortunately not the fastest. That’s why the Eclipse community has implemented settings to keep things within boundaries, and the above dialog is one of this.

As Eclipse tends to get slower and to use more memory for very large files, that dialog warns me about this. I can change the settings pressing the ‘Configure Scalability Settings…‘ hyperlink in above dialog which will open the settings:

Eclipse Scalability Settings

Eclipse Scalability Settings

The same settings are available with the menu Window > Preferences > C/C++ > Editor > Scalability too.  I can configure if I do want that dialog (I usually switch it off), this is the same setting as the check-box on the first dialog. I can change the line number settings to warn me about really big files only.

The warning dialog typically shows up if I open one of the header files containing all the peripheral register declarations, or during debugging if I step into library code.

If performance is a concern, it does not hurt to turn on the scalability mode:

Scalability Mode Turned On

Scalability Mode Turned On

This turns off features which might slow down Eclipse. And there is a price for performance: less functionality.

Happy Scaling :-)

 

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}