Skip to content

Commit

Permalink
perf(ios): improve performance of require function
Browse files Browse the repository at this point in the history
Generate an index of js/json files (_index_.json) packaged into the app for faster existence checks/reading.
Generate index when running local dev xcode build using node script.

Fixes TIMOB-26742
  • Loading branch information
sgtcoolguy committed Jan 24, 2019
1 parent 58dfb6a commit d8bddd8
Show file tree
Hide file tree
Showing 5 changed files with 521 additions and 243 deletions.
2 changes: 1 addition & 1 deletion iphone/TitaniumKit/TitaniumKit/Sources/API/KrollBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern NSString *TitaniumModuleRequireFormat;
KrollContext *context;
NSDictionary *preload;
NSMutableDictionary *modules;
NSMutableDictionary *pathCache;
NSMutableDictionary *packageJSONMainCache;
TitaniumObject *titanium;
KrollObject *console;
BOOL shutdown;
Expand Down

0 comments on commit d8bddd8

Please sign in to comment.