feat: cache resource move from global to each context

This commit is contained in:
pengfei.zhou
2021-11-26 11:58:39 +08:00
committed by osborn
parent 3ac737db00
commit 96266921ff
5 changed files with 22 additions and 10 deletions

View File

@@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, copy) NSString *extra;
@property(nonatomic, assign) BOOL destroyed;
@property(nonatomic, strong) DoricPerformanceProfile *performanceProfile;
@property(nonatomic, strong) NSMapTable <NSString *, __kindof DoricResource *> *cachedResources;
- (instancetype)initWithScript:(NSString *)script source:(NSString *)source extra:(NSString *)extra;