Sergey Biryukov
688b88d5a3
Editor: Improve block loading PHP performance.
...
This commit improves PHP performance for core blocks by reading a single PHP file with block metadata, instead of reading a JSON file per-block and then decoding from JSON to PHP.
Includes:
* Adding a new Grunt task to convert `block.json` files to `block-json.php`.
* Using the new `block-json.php` file in the `register_block_type_from_metadata()` function.
Follow-up to [48141].
Props aristath, gziolo, johnbillion, presstoke, mukesh27, hellofromTonya, petitphp, adamsilverstein, costdev, desrosj, SergeyBiryukov.
Fixes #55005 .
git-svn-id: https://develop.svn.wordpress.org/trunk@54276 602fd350-edb4-49c9-b593-d223f7449a82
2022-09-21 13:55:25 +00:00
..
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2021-05-25 08:51:09 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-26 13:39:57 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2021-11-09 02:15:23 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-21 13:55:25 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-05-02 10:36:45 +00:00
2022-05-02 10:36:45 +00:00
2022-07-04 12:04:45 +00:00
2022-04-26 13:39:57 +00:00
2022-04-26 13:39:57 +00:00
2022-05-03 14:58:54 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-04-12 15:10:30 +00:00
2022-05-03 14:58:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-07-08 12:32:37 +00:00
2022-04-12 15:10:30 +00:00
2022-05-10 14:47:10 +00:00
2022-04-12 15:10:30 +00:00
2021-11-08 14:26:27 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2021-11-09 02:15:23 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-08-23 15:40:25 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-08-23 15:40:25 +00:00
2022-04-12 15:10:30 +00:00
2021-11-08 14:26:27 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2021-05-19 15:07:55 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2020-06-26 13:31:11 +00:00
2022-04-12 15:10:30 +00:00
2021-06-22 09:58:32 +00:00
2022-09-20 15:14:54 +00:00
2022-09-20 15:14:54 +00:00
2022-04-12 15:10:30 +00:00
2022-09-20 15:14:54 +00:00
2021-11-09 02:15:23 +00:00
2021-11-09 02:15:23 +00:00