-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bridge): Provide automatic garbage collection triggering
Introduce settings similar to the ones in {N} Android Runtime for configuring automatic GC triggering by the runtime. They are specified in `app/package.json` as values in the `ios` section: * `gcThrottleTime` - number of milliseconds which must have passed since the last automatic GC in order to trigger one during a call from JS to native * `memoryCheckInterval` - number of milliseconds which must have passed since the last automatic GC in order to check the memory usage on the device and trigger GC if free memory is below the specified threshold * `freeMemoryRatio` - a floating-point value from 0 to 1 which sets the threshold below which a GC will be triggered when the above check is made. implements #1035
- Loading branch information
1 parent
c3de1e2
commit edbf653
Showing
3 changed files
with
153 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters