Q
Q
qwermus2020-10-21 09:05:23
Laravel
qwermus, 2020-10-21 09:05:23

How to speed up laravel?

Hello.

I use laravel for a rather busy project, and I noticed that the controllers I wrote (for example, for pagination of posts) are executed very quickly, for example, in 0.0001s. But the framework itself (from the entry point to the controller) takes about 0.1 seconds.

A project is just a REST API, i.e. a database with data, where we put something according to the API request, and then, again, upon request from the mobile, using pagination, we select something and give it back. At the moment it is written in laravel 7, I plan to upgrade to version 8 in the near future.

Yes, I know about LUMEN, but the project was written specifically in laravel and now, I think, transferring to lumen can be difficult.

So, now the question is: what native things can be disabled in Laravel in order to speed up its work as much as possible?

Thank you in advance for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2020-10-21
@SilenceOfWinter

see get_included_files() or use lara profiling. delays are usually solved by enabling caching.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question