Avoid copying the JS bundle unnecessarily

Summary:
public
When forwarding the unbundle code to the bridge, we’re passing the code by value.
This changes the affected method to take it by reference.

Reviewed By: astreet

Differential Revision: D2759569

fb-gh-sync-id: 508d4f4d56bcbdd5a7df5610cf9040121f8878ef
This commit is contained in:
David Aurelio 2015-12-15 05:46:24 -08:00 committed by facebook-github-bot-4
parent f7edcda5d7
commit cf94a9ea95
1 changed files with 2 additions and 2 deletions

View File

@ -623,8 +623,8 @@ static void create(JNIEnv* env, jobject obj, jobject executor, jobject callback,
static void executeApplicationScript(
const RefPtr<Bridge>& bridge,
const std::string script,
const std::string sourceUri) {
const std::string& script,
const std::string& sourceUri) {
try {
// Execute the application script and collect/dispatch any native calls that might have occured
bridge->executeApplicationScript(script, sourceUri);