mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #840] [CLOSED] [DON'T MERGE] [PoC] Using the concepts of LazyMap to speed up ORM internals #8783
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/840
Author: @Ocramius
Created: 11/5/2013
Status: ❌ Closed
Base:
master← Head:proof-of-concept/lazy-map-implementation📝 Commits (3)
db7f79cUsing the concepts of LazyMap to speed up ORM internals8666a8dApplying optimizations deriving from LazyMap-style direct property access also to hydrators and UoWb189d53Cleaning up basic persister metadata usage (applying direct property access as well)📊 Changes
9 files changed (+117 additions, -107 deletions)
View changed files
📝
lib/Doctrine/ORM/EntityManager.php(+4 -4)📝
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(+9 -2)📝
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(+1 -1)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+8 -38)📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+1 -1)📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+15 -0)📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+26 -17)📝
lib/Doctrine/ORM/Tools/SchemaValidator.php(+1 -1)📝
lib/Doctrine/ORM/UnitOfWork.php(+52 -43)📄 Description
For reference, see https://github.com/Ocramius/LazyMap
This is just a Proof of Concept - not meant to be merged
Still checking the performance test suite.
The main advantage here is getting rid of metadata that has been shared across all the different components. If this approach is acceptable, we can limit ourselves to passing around the class metadata factory
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.