Skip to content

Autoloader is very slow despite OPCache being configured #44604

@ignacyhologa

Description

@ignacyhologa

Impacted plugin

Jetpack

Quick summary

We're experiencing significant performance issues with the Jetpack Autoloader. The function:

Automattic\Jetpack\Autoloader\jp66cd040767dcc115cc8018307ec36356\al5_0_0\PHP_Autoloader::load_class

is one of the slowest parts of our WooCommerce site, with load times around 0.48 seconds and 1,353 calls on a single page load.

This issue is all over the site and i don't understand why this is so. Even on my local development setup where i use macbook pro m3 the time is significant. I am using code profiler plugin to profile the page.

Steps to reproduce

Environment:

Jetpack Autoloader version: Latest woocommerce 10.0.4
WooCommerce version: 10.0.4
PHP version: 8.4.5
OPCache enabled: ✅
OPCache memory size: 512MB
Server: Litespeed

PHP ini settings:
[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=512
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=32531
opcache.validate_timestamps=0 ; for production
opcache.file_cache_consistency_checks=0 ; for production
opcache.fast_shutdown=1 ; for production
opcache.max_wasted_percentage=10
opcache.save_comments=0 ; for production

Site owner impact

More than 60% of the total website/platform users

Severity

Critical

What other impact(s) does this issue have?

Individual site owner revenue, Platform revenue

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Focus] Performance[Type] BugWhen a feature is broken and / or not performing as intended

    Type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions