lacasanova / shortcutrecorder

Automatically exported from code.google.com/p/shortcutrecorder
0 stars 0 forks source link

new NSDistributedNotificationCenter feature make system slow down #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
i am developer of xchat-aqua and it uses 2 SRRecorderCells and
SRStringForKeyCode in SRCommon.
after running, when focusing on xchat-aqua, it has no problem. but focusing
other application, it goes crazy and everything stop even more than some
minutes.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
revision 51 on snow leopard

Please provide any additional information below.
 i analyse it with sampler and found NSDistributedNotificationCenter
consumes whole resources. i patched below, then it become calm now. patch
just comment out  NSDistributedNotificationCenter features.

Index: Source/SRKeyCodeTransformer.m
===================================================================
--- Source/SRKeyCodeTransformer.m   (리비전 51)
+++ Source/SRKeyCodeTransformer.m   (작업 사본)
@@ -117,7 +117,7 @@
     return [NSString class];
 }

-
+/*
 //---------------------------------------------------------- 
 //  init
 //---------------------------------------------------------- 
@@ -138,7 +138,7 @@
    [[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
    [super dealloc];
 }
-
+*/
 //---------------------------------------------------------- 
 //  reloadCache
 //---------------------------------------------------------- 

Original issue reported on code.google.com by Toe...@gmail.com on 28 Dec 2009 at 12:40

GoogleCodeExporter commented 8 years ago
Does this problem effect only certain types of hardware, such as the new core 
i7 systems?

Original comment by sales%ir...@gtempaccount.com on 26 May 2010 at 9:15

GoogleCodeExporter commented 8 years ago
the machine i exprienced this is old macbook black that use core2duo. it was 
produced
in 2008 and osx version was 10.6. (without 64bit kernel support)

i don't know what is the problem exactly. in fact, my mac is always slower then
other's one regardless of machine. the combination of softwares i am running may
affect this.

i always run: firefox, thunderbird, xcode, interface builder, microsoft 
messenger,
xchat-aqua, activity moniter, python, keyremap4macbook, baram (custom IME), 
Terminal
wth Visor from SIMBL, XAMPP, ssh

if you want, i can retry to occure this problem and suggest a link to download
defective binary and sourcecode of my project.

Thank you for attention. its about 6 month wating ;)

Original comment by Toe...@gmail.com on 26 May 2010 at 12:45

GoogleCodeExporter commented 8 years ago
Antonin has a better solution to this in issue 40

Original comment by sales%ir...@gtempaccount.com on 21 Jul 2010 at 8:20

GoogleCodeExporter commented 8 years ago
fixed in r52

Original comment by rarich...@gmail.com on 5 Sep 2010 at 4:49