How to Speed Up Generating Script Files (v2019)

Tips submitted by PHPMaker users
Post Reply
mobhar
User
Posts: 11727

How to Speed Up Generating Script Files (v2019)

Post by mobhar »

For those of you who want to speed up the generating script files, here is the trick to do that in PHPMaker 2019.

Basically, you only need to setup the following 4 option items from "Tools" -> "Advanced Settings":

  1. Enter the value to "Node.js path", usually (64-bit version): C:\Program Files\nodejs
  2. Enter the value to "Node.js max. old space size", usually: 4096
  3. Enable "Node.js write file synchronously", (optional)
  4. Enable "Node.js garbage collection", (optional)
  5. Save the project file,
  6. Regenerate all the script files.

Now you will see the generating script files is running quicker than before. :-)

(See "Tools" -> "Advanced Settings" in help file for details.)


Adam
User
Posts: 480

Post by Adam »

Does this require a standard Node.js install, or is specifying the "node" folder within the PHPM installation sufficient?


mobhar
User
Posts: 11727

Post by mobhar »

As mentioned, if you read the Help file "Tools" -> "Advanced Settings" -> "Node.js path", then it is path of Node.js (node.exe).

By default PHPMaker uses its own 32-bit node.exe under the "node" subfolder of the installed path, e.g. C:\Program Files (x86)\PHPMaker <version>\node. If you want to use another version of Node.js (e.g. 64-bit version), you can specify your own path, e.g. C:\Program Files\nodejs.

So, it depends on your needs. For me, I would prefer to use 64-bit version; which is installed in C:\Program Files\nodejs.


andyrav
User
Posts: 641

Post by andyrav »

OMG a few minutes down to a few seconds now. Magic.


saleh
User
Posts: 470

Post by saleh »

Experiment was done
Very fast
Thank you very much


dsingh
User
Posts: 166

Post by dsingh »

after few lines. getting this error.

<--- JS stacktrace --->
#

Fatal process OOM in insufficient memory to create an Isolate

#


arbei
User
Posts: 9384

Post by arbei »

mobhar wrote:

  1. Enter the value to "Node.js max. old space size", usually: 4096

Make sure your PC has enough memory. If not, reduce the setting.


mobhar
User
Posts: 11727

Post by mobhar »

Alternatively, close another unused applications that still opened, and then try again. If the problem remains, try to change 4096 to 3072 or to 2048, and then try again.


dsingh
User
Posts: 166

Post by dsingh »

changing to 3076 resolved.


Post Reply