Skip to content

Improve FileDriver mapping data retrieval by caching results locally #394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 25, 2015

Conversation

gries
Copy link
Contributor

@gries gries commented Dec 4, 2015

In cases where mapping Data is not cached by calling initilaize();
It makes sense to cache results after parsing the Yaml file.

In cases where mapping Data is not cached by calling ```initilaize();```
It makes sense to cache results after parsing the Yaml file.
@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DCOM-368

We use Jira to track the state of pull requests and the versions they got
included in.

@Ocramius
Copy link
Member

Ocramius commented Dec 4, 2015

@gries do you think that you can test the change? Needs a test subclassing the file driver

@gries
Copy link
Contributor Author

gries commented Dec 4, 2015

I have added a test that calls the getElement() twice and makes sure that the Yaml file is only loaded once.

@gries
Copy link
Contributor Author

gries commented Dec 21, 2015

any update on this?

@Ocramius Ocramius self-assigned this Dec 25, 2015
@Ocramius Ocramius added this to the 2.7.0 milestone Dec 25, 2015
Ocramius added a commit that referenced this pull request Dec 25, 2015
Improve MappingData retrieval by caching Results.
@Ocramius Ocramius merged commit 4b8b16a into doctrine:master Dec 25, 2015
@Ocramius
Copy link
Member

@gries merged and ready for 2.7.0, thanks!

@Ocramius Ocramius changed the title Improve MappingData retrieval by caching Results. Improve FileDriver mapping data retrieval by caching results locally Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants