Matthew Reishus
Matthew Reishus
With [PHP-SPX](https://github.com/NoiseByNorthwest/php-spx), we can draw flamegraphs and also optionally activate a sampling mode to reduce timing distortions. Here's some I took on a fresh site with only Woo installed: **No...
### Block Registration Issue For block registration, the slowest part seems to be passing block.json filenames to core's `register_block_type_from_metadata()`, which [reads json files from disk and decodes them](https://github.com/WordPress/wordpress-develop/blob/5c19fa13699e409fd11b37db3af9b4bc440bcf7e/src/wp-includes/blocks.php#L431-L433). ### Proposed...
I threw up a draft PR here: https://github.com/woocommerce/woocommerce/pull/50889/files In my testing, it's not working properly because of a core bug. While `register_block_type_from_metadata()` was modified to be runnable without passing a...
I looked into the DI container and found the `hasTag()` function doing an O(n) lookup. However, it's only 57 items it's looping through. I implemented a quick and dirty fix...
As many people have pointed out above, it seems there's a lot of overhead in the `get_suggestions()` function or the rule processing code. I think there can be a quick...
I wanted to sum up everything I've looked at so far: ## `update_script_data_cache()` This runs on a shutdown hook and always updates a transient, even if the cached data hasn't...
For `register_chunk_translations()`, I found this core change helps a fair amount on my machine (2.5-3ms -> 1.4-1.5ms): ```diff diff --git a/l10n.php b/l10n.php index 038b916..df344da 100644 --- a/l10n.php +++ b/l10n.php @@...
I've also found 2 other things stopping it in the example I set up. The product variation is getting these two post metas set in the shadow copy: ``` {...
It seems that when woocommerce registers the product_variation post type, it sets public to false: ``` register_post_type( 'product_variation', apply_filters( 'woocommerce_register_post_type_product_variation', array( 'label' => __( 'Variations', 'woocommerce' ), 'public' => false,...
PRs: * Add product variation attributes to the cache site sync: 185272-ghe-Automattic/wpcom * Jetpack sync - https://github.com/Automattic/jetpack/pull/43933 * Add product variations to the ES Builder: 185277-ghe-Automattic/wpcom