Skip to content

Commit b0fab32

Browse files
Minor clarification.
1 parent f727bed commit b0fab32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ composer require laragear/preload
3232

3333
> This package doesn't require the `ext-zend-opcache` extension to install. Just be sure to have it [enabled in your deployment server](https://www.php.net/manual/en/book.opcache.php).
3434
35-
## What is Preloading? What does this?
35+
## What is Preloading? Does it make my app FAST?
3636

37-
By default, PHP needs to read, interpret and compile each requested file in your project. When Opcache is enabled, it will keep interpreted files in memory to avoid reading them again from the file system.
37+
PHP interpreter needs to read and compile each requested file in your project. When Opcache is enabled, it will keep interpreted files in memory instead of reading them again from the file system, which is miles faster.
3838

39-
Opcache preloading stores in memory a given list of files when the PHP process starts, before normal execution. This makes the application _faster_ during the first requests, as these files to read are already in memory. With JIT, these files are also compiled into byte-code.
39+
Opcache's Preloading allows to store in memory a given list of files when the PHP process starts, before normal execution. This makes the application _faster_ during the first requests, as these files to read are already in memory. With JIT, these files are also compiled into byte-code and saving another step.
4040

4141
This package generates a preload file with the most accessed files of your application. Once done, you can point the generated list into your `php.ini`:
4242

0 commit comments

Comments
 (0)