Speed of PHP vs JavaScript?

后端 未结 3 1728
执念已碎
执念已碎 2020-12-10 02:37

I am writing a script to tokenize file contents. I\'ve written a tokenizer in JavaScript, but it gets pretty slow with large files (5+ seconds). Since I\'m retrieving the fi

3条回答
  •  感情败类
    2020-12-10 03:02

    Its worth saying that another consideration for using PHP is the ability to cache server side. I'm looking at this considering if I should move some of the functions from JS to PHP because if I then cache the files server side there is no further calculations involved at all! I know this ticket is old but this may be another consideration for future readers.

提交回复
热议问题