Forums

Question about computation speed and web workers

Hello. I have an app that runs a python script to calculate numbers given a user's input parameters. On localhost the calculation process takes 3-4 seconds; with the $5/mo plan it takes 7-8 seconds. I would think this is a cpu/ram issue but since there are no options to configure these settings, does this have something to do with the number of web workers?

My javascript just has simple input forms, sends a http post request to flask where a python script is called, then the calculation takes place and the values are returned to the javascript. The timer only measures the calculation speed within the python script - will increasing the number of web workers help reduce the computation time?

No, increasing the number of workers will only increase the maximum number of requests that your web app can handle at any time.