anb0s / eclox

Eclox is a simple doxygen frontend plug-in for eclipse. It aims to provide a slim and sleek integration of the code documentation process into Eclipse.
http://anb0s.github.io/eclox
Eclipse Public License 2.0
34 stars 2 forks source link

eclox make eclipse UI freeze on right click over a project on Project explorer #235

Open alef75 opened 5 years ago

alef75 commented 5 years ago

I've got a big C/C++ makefile project in eclipse workspace: every time I right click on the project on the project explorer, eclipse freeze for about 7 seconds.

This is the response of the eclipse team: This is a problem with these eclox doxyfile bundles. They do a resource tree traversal on the UI thread (called via a proper tester, which is called to determine some property to decide whether to show some menu item)

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=551463 for bug detail

Your Environment

anb0s commented 5 years ago

Thanks for the report!

We have also big projects and do not see performance impact in Eclipse 2018-12 or 2019-03.

I will investigate the issue and try to move the code out of UI context or just enable the "Build documentation" entry and execute the doxyfile file search on demand if this entry was selected...

alef75 commented 5 years ago

Hi Andre, thank you for your time. In my office we are 9 people that use eclipse as C/C++ IDE, We all have this 7/8 seconds of freeze on right click events on the project on project explorer. I've noticed this behavior, starting from eclipse 2019-09. Just to make a try I've uninstalled eclox plugin, and the problem has disappear. I think is a good idea to move the code out of UI context and also select the ennoblement of the build documentation. What about excluding from search the derived resources? or give the possibility to include or exclude some folder from search path?

anb0s commented 5 years ago

What about excluding from search the derived resources? or give the possibility to include or exclude some folder from search path?

First i will prepare simple approach that does not search the resources for the menu entry, it will be just always there. Only after click at the entry it will search. After this was verified by users (like you) i can add some more logic for include and exclude patterns.

alef75 commented 5 years ago

I think your approach is the best one. One step at time in small batches thank you for you commitments in this one and for this great plugin

anb0s commented 4 years ago

investigating again, please try testing build #236

alef75 commented 4 years ago

I've made some test with build Eclox 0.13.0.v20191027-1934

The problem has been mitigated but is still here. The delay has been halved: from 7 seconds to 3.9 seconds.

after tests I've unistalled Eclox, than delay has disapeared

anb0s commented 4 years ago

Thanks for the test! I will improve this with next build...