Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed May 30, 2018
1 parent e70e5d1 commit 59a2e46
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
<dict>
<key>baselineAverage</key>
<real>1.17</real>
<real>0.118</real>
<key>baselineIntegrationDisplayName</key>
<string>Local Baseline</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions MTDemo/MTDemo/SuperStub.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@implementation SuperStub

- (void)foo:(NSDate *)arg {
// NSLog(@"SuperStub foo: %@", arg);
[NSThread sleepForTimeInterval:0.001];
NSLog(@"SuperStub foo: %@", arg);
// [NSThread sleepForTimeInterval:0.0001];
}

+ (void)foo:(NSDate *)arg {
Expand Down
2 changes: 1 addition & 1 deletion MessageThrottle.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MessageThrottle"
s.version = "1.2.1"
s.version = "1.2.2"
s.summary = "A lightweight Objective-C message throttle and debounce library."
s.description = <<-DESC
MessageThrottle is a lightweight, simple library for controlling frequency of forwarding Objective-C messages. You can choose to control existing methods per instance or per class. It's an implementation of function throttle/debounce developed with Objective-C runtime.
Expand Down
2 changes: 1 addition & 1 deletion MessageThrottle/MessageThrottle.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ - (instancetype)init
self = [super init];
if (self) {
_targetSELs = [NSMapTable weakToStrongObjectsMapTable];
_aliasSelectorCache = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsOpaqueMemory | NSMapTableObjectPointerPersonality valueOptions:NSPointerFunctionsOpaqueMemory | NSMapTableObjectPointerPersonality];
_aliasSelectorCache = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsOpaqueMemory | NSMapTableObjectPointerPersonality valueOptions:NSPointerFunctionsOpaqueMemory | NSMapTableObjectPointerPersonality];
pthread_mutex_init(&mutex, NULL);
pthread_mutex_init(&alias_selector_mutex, NULL);
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ MessageThrottle is a lightweight, simple library for controlling frequency of fo

- [Objective-C Message Throttle and Debounce](http://yulingtianxia.com/blog/2017/11/05/Objective-C-Message-Throttle-and-Debounce/)
- [Associated Object and Dealloc](http://yulingtianxia.com/blog/2017/12/15/Associated-Object-and-Dealloc/)
- [MessageThrottle Performance Benchmark and Optimization](http://yulingtianxia.com/blog/2018/05/31/MessageThrottle-Performance-Benchmark-and-Optimization/)

## 🌟 Features

Expand Down

0 comments on commit 59a2e46

Please sign in to comment.