To Freeze or not to Freeze

I have recently migrated to Eclipse Mars, and  it provides an interesting tool that tracks all UI freezes.

EclipseFreezes

Definitely there are a lot of UI freezes, it explains why Eclipse can be sometimes so slow ! By clicking on details we can see that the UI thread is often busy due to filtering into JFace widgets, because it calls a lot of code without worrying about who is the running thread. These hooks from UI thread shall be managed with care ! Any piece of code run by UI thread shall not last more than 500ms (even less).
Below one of the stack trace of the main thread (UI thread into Equinox world)

We can add that OSGI framework never help someone to avoid UI freeze, it becomes even more difficult to track among all these bundles.

JRebirth has been designed to let developer doing a lot of task in background into a slot of ones of its thread pools, letting the UI thread peaceful to avoid UI freezes.

We can hope that Eclipse developers will use this tool to fix their code, avoiding this really bad UX.

Leave a Reply