Sergey Biryukov
f092e4b013
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 .
Built from https://develop.svn.wordpress.org/trunk@54276
git-svn-id: http://core.svn.wordpress.org/trunk@53835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-21 13:57:21 +00:00
..
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2021-06-15 08:52:30 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2021-11-09 02:17:17 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-21 13:57:21 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-05-02 10:39:04 +00:00
2022-05-02 10:39:04 +00:00
2022-07-04 12:06:43 +00:00
2022-04-26 13:42:07 +00:00
2022-04-26 13:42:07 +00:00
2022-05-03 15:00:36 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-05-03 15:00:36 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:44:38 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-07-08 12:34:14 +00:00
2022-04-12 15:12:47 +00:00
2022-05-10 14:49:35 +00:00
2022-04-12 15:12:47 +00:00
2021-11-08 14:29:21 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2021-11-09 02:17:17 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-08-23 15:42:33 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-08-23 15:42:33 +00:00
2022-04-12 15:12:47 +00:00
2021-11-08 14:29:21 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2021-05-19 15:09:27 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2020-06-26 13:33:47 +00:00
2022-04-12 15:12:47 +00:00
2021-06-22 10:00:50 +00:00
2022-09-20 15:43:29 +00:00
2022-09-20 15:43:29 +00:00
2022-04-12 15:12:47 +00:00
2022-09-20 15:43:29 +00:00
2021-11-09 02:17:17 +00:00
2021-11-09 02:17:17 +00:00