Skip to content

Commit

Permalink
optimize memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Dec 6, 2018
1 parent 3930581 commit a89f6b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Hyphenopoly_Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@
}

/**
* Allocate memory for (w)asm
* Pre-Allocate memory for (w)asm
* Default is 32 wasm Pages (). For languages with larger .hpb
* files a higher value is needed.
* Get the value from baseData.heapSize in Hyphenopoly.js
* @param {string} lang Language
* @returns {undefined}
*/
Expand All @@ -421,7 +424,7 @@
wasmPages = 41;
break;
case "de":
wasmPages = 75;
wasmPages = 55;
break;
case "nb-no":
wasmPages = 92;
Expand Down

0 comments on commit a89f6b7

Please sign in to comment.