Skip to content

Conversation

@atanasovg
Copy link
Contributor

This pull:

  • Extracts the Require-related implementation from the NativeScriptRuntime class and puts into the Require one.
  • Implements the code-caching technique
  • Enables configurable options in an application's package.json file to turn caching on.

Code-caching is disabled by default. Use the following settings in app/package.json to enable it:

"android": {
    "codeCache" : "true"
}

Additionally, to make it really effective, you should specify the --nolazy V8 flag as well (--expose_gc is required by the tns-modules package):

"android": {
    "v8Flags" : "--nolazy --expose_gc",
    "codeCache" : "true"
}

@ns-bot
Copy link

ns-bot commented Nov 6, 2015

💚

@slavchev
Copy link

slavchev commented Nov 6, 2015

👍

@ns-bot
Copy link

ns-bot commented Nov 6, 2015

💚

1 similar comment
@ns-bot
Copy link

ns-bot commented Nov 6, 2015

💚

@atanasovg atanasovg closed this Nov 6, 2015
@atanasovg atanasovg reopened this Nov 6, 2015
atanasovg added a commit that referenced this pull request Nov 6, 2015
@atanasovg atanasovg merged commit d13c79b into master Nov 6, 2015
@atanasovg atanasovg deleted the gatanasov/code-cache branch November 6, 2015 15:42
@ns-bot
Copy link

ns-bot commented Nov 6, 2015

💚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants