Skip to content

Commit

Permalink
Reduce startup time. (#1291)
Browse files Browse the repository at this point in the history
Get rid of file scope initialization that causes a premain startup hit.
  • Loading branch information
dmaclach authored and maicki committed Dec 20, 2018
1 parent 7cddc2b commit 4982c84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Source/ASImageNode+AnimatedImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ @interface ASNetworkImageNode (Private)
- (void)_locked_setDefaultImage:(UIImage *)image;
@end

NSString *const ASAnimatedImageDefaultRunLoopMode = NSRunLoopCommonModes;

@implementation ASImageNode (AnimatedImage)

Expand Down
2 changes: 1 addition & 1 deletion Source/Private/ASImageNode+AnimatedImagePrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#import <AsyncDisplayKit/ASThread.h>

AS_EXTERN NSString *const ASAnimatedImageDefaultRunLoopMode;
#define ASAnimatedImageDefaultRunLoopMode NSRunLoopCommonModes

@interface ASImageNode ()
{
Expand Down

0 comments on commit 4982c84

Please sign in to comment.