Menu

#547 Poor window resize performance

None
closed-accepted
nobody
None
5
2015-02-07
2015-02-02
No

Poor window resize performance caused by threads creation for every particular event. When you resize your window application receives hundreds of such events. This leads to high resource consumption (both CPU and memory) and slowdowns the application.
To fix it we can use single threaded scheduled executor service for the purpose of delaying saving size.

Could be applied to trunk. Also compatible with stable version.

Testing steps:
1. apply patch and build
2. start jedit and make window changes: resize, move, minimize/maximize
3. ensure that changes has been saved
4. (optional) you can connect with visualvm to ensure that there are no superflous threads created at every resize event.

1 Attachments

Discussion

  • Alan Ezust

    Alan Ezust - 2015-02-03

    Testing it now. So far so good. I will apply in a couple of days if all goes well.
    For the changelog entry, what name should I credit your contribution to? Would you mind setting a real name for your sf.net userid?

     
  • Sergey Mashkov

    Sergey Mashkov - 2015-02-03

    Done.

     
  • Alan Ezust

    Alan Ezust - 2015-02-07
    • status: open --> closed-accepted
    • Group: -->
     
  • Alan Ezust

    Alan Ezust - 2015-02-07

    Committed rev# 23857. Thank you for your contribution! I hope this is not your last.

     

Log in to post a comment.