• Resolved mayur1234

    (@mayur1234)


    Hi,

    I found wpforms takes high execution time on my website that cause impact on speed performance how can optimize code for wpforms where can I add foo class

    performance details as below

    Script performance: time 0.092260 sec
    Method and functions performance: time 0.085212 sec

    /**
         * Finds the path to the file where the class is defined.
         *
         * @param string $class The name of the class
         *
         * @return string|false The path if found, false otherwise
         */
        public function findFile($class)
        {
            // class map lookup
            if (isset($this->classMap[$class])) {
                return $this->classMap[$class];
            }
            if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
                return false;
            }
            if (null !== $this->apcuPrefix) {
                $file = apcu_fetch($this->apcuPrefix.$class, $hit);
                if ($hit) {
                    return $file;
                }
            }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mayur1234 – Thanks for sharing this!

    We have passed on the feedback. Also, please know that this code is from a third party library which we might not be able to optimize from our end. We’ll however check further.

    In case it helps, you can learn more about this library from here.

    Thank you 🙂

    • This reply was modified 3 years, 6 months ago by Nik Sebastian.

    Hey @mayur1234 – We haven’t heard back from you in about a month, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wp forms take highest execution use class loader’ is closed to new replies.