After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 508675 - Applying change in Orca preference dialog is a little bit slow.
Applying change in Orca preference dialog is a little bit slow.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.21.x
Other All
: Normal minor
: 2.24.2
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks: 491756
 
 
Reported: 2008-01-11 04:26 UTC by Emily chen
Modified: 2009-01-20 20:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch to illustrate current timings (932 bytes, patch)
2008-11-18 16:53 UTC, Mesar Hameed
none Details | Review
modified code with timing (2.16 KB, patch)
2008-11-18 16:58 UTC, Mesar Hameed
none Details | Review
patch without timing info (1.44 KB, patch)
2008-11-18 17:01 UTC, Mesar Hameed
committed Details | Review
another patch that saves time (922 bytes, patch)
2008-11-19 00:11 UTC, Mesar Hameed
committed Details | Review

Description Emily chen 2008-01-11 04:26:58 UTC
Please describe the problem:
It is a little bit longer to apply any changes in preferences than user expected. 

Steps to reproduce:
1. launch Orca and go to "Braille" tab 
2. Check 'Enable Braille monitor'
3. Press Apply 
4. Press OK 


Actual results:
after #3 and #4, it always takes several seconds (5 seconds in my computer)to make the change in orca preferences. 

Expected results:
Change immediately after click "Apply" and "OK" buttons. 
It is a little bit longer to apply any changes in preferences than user expected. 

Does this happen every time?
yes

Other information:
It is not a serious bug but the performance of Orca preference dialog need to improve.
Comment 1 Willie Walker 2008-01-11 13:42:20 UTC
Thank you Emily!
Comment 2 Mesar Hameed 2008-11-18 16:53:10 UTC
Created attachment 122957 [details] [review]
patch to illustrate current timings

with the above patch (to show timings), we get the current info:
applying took 7.46126413345
_cleanupSpeechServers  took 0.0173380374908
destroying window took 7.06146082878

aprox 14 seconds overall, for pressing ok in the preferences.
Comment 3 Mesar Hameed 2008-11-18 16:58:13 UTC
Created attachment 122958 [details] [review]
modified code with timing

modification:
applying took 2.25891494751
_cleanupSpeechServers  took 0.0121560096741
destroying window took 7.0944231987

shaves a few seconds :)
Comment 4 Mesar Hameed 2008-11-18 17:01:33 UTC
Created attachment 122960 [details] [review]
patch without timing info

clean patch to be applied to trunk. 2.24 branch?
Comment 5 Willie Walker 2008-11-18 19:05:56 UTC
Woo hoo!  Thanks Jon.  Nice work.  Committed this to trunk and gnome-2-24.  I'm not sure we're ready to close this just yet because it still takes a noticeable amount of time to close the window.  But...your analysis was great and the speed boost is awesome, too.  Thanks so much.
Comment 6 Mesar Hameed 2008-11-19 00:11:25 UTC
Created attachment 122997 [details] [review]
another patch that saves time

redusing the time taken to destroy the window., it was in the 7 range, now down to 1.9 ish.

:)
Comment 7 Willie Walker 2008-11-19 15:07:59 UTC
Thanks!  Committed to trunk and gnome-2-24.  This is not only faster, but it also seems to help reduce the amount of time that a blank Orca preferences dialog appears on the screen.  Nice job.