[PHP] Several slow down program point PHP / API running speed

 

1. Start Find Session requires a certain overhead, default session.save_handler = files, can be modified to redis speed.

The session files will block the request? https://log.zvz.im/2016/02/27/PHP-session/

Some businesses may not need to interface to open session, so as laravel .env set SESSION_DRIVER = array

 

2. Use redis process, pay attention to the rational use of command can be used exists, do not use keys, a large amount of data transfer fees efficiency loss.

 

3. asynchronous network calls can optimize the asynchronous role is to enhance concurrency. http://www.yzmedu.com/learn/2900

 

Link:https://www.cnblogs.com/farwish/p/12105357.html

 

Guess you like

Origin www.cnblogs.com/farwish/p/12105357.html