Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Use FQFN #50

Merged
merged 2 commits into from
Apr 24, 2018
Merged

Use FQFN #50

merged 2 commits into from
Apr 24, 2018

Conversation

snapshotpl
Copy link
Contributor

@snapshotpl snapshotpl commented Aug 29, 2017

This repository use many internal php function. For example in my application when I use Zend\Crypt\BlockCipher class hash_hmac function is call 10k times and take ~23ms! This change should have perfomance visible impact

Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

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

The same we have done in zendframework/zend-servicemanager#198 but a bit different way - we import all functions on top. I would prefer that way, because we just add new lines and we don't need to modify anything else. Please note I have wrote sniff in zend-coding-standard which do it automatically ;-)

@snapshotpl
Copy link
Contributor Author

@webimpress Is it an "official" way to do that in zf?

@michalbundyra
Copy link
Member

Hm... I just only know that we have done this way in zend-code:
zendframework/zend-code#121
and zend-service as I've mentioned before. Both PR were merged and released. I would then go this way and import these functions. As I mentioned you can use my sniff, which will do all for you automatically 😄

Simplifies diff, and makes it more clear exactly which internals we are
using.
@weierophinney weierophinney merged commit 63330ca into zendframework:master Apr 24, 2018
weierophinney added a commit that referenced this pull request Apr 24, 2018
weierophinney added a commit that referenced this pull request Apr 24, 2018
weierophinney added a commit that referenced this pull request Apr 24, 2018
Forward port #50

Conflicts:
	CHANGELOG.md
@weierophinney
Copy link
Member

Thanks, @snapshotpl!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants