Skip to content

Conversation

@julceslauhub
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extra $dataStore variable could increase the performance by reducing the call to getter function for a data with lots of variables:

        if (!empty($serialized['data']) && is_array($serialized['data'])) {
            $dataStore = $instance->getDataStore();
            foreach ($serialized['data'] as $key => $value) {
                $dataStore->putData($key, $value);
            }
        }

@caleeli caleeli merged commit d3b7d9d into FOUR-8177 Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants