Skip to content
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

Faster phalcon_array_merge_recursive_n() #830

Merged
merged 3 commits into from Jul 12, 2013
Merged

Faster phalcon_array_merge_recursive_n() #830

merged 3 commits into from Jul 12, 2013

Conversation

ghost
Copy link

@ghost ghost commented Jul 12, 2013

Changes:

  • dropped array_merge_recursive_n() because it was a duplicate of phalcon_array_merge_recursive_n()
  • introduced phalcon_get_current_key_w() that returns a zval that boxes the current key; this zval does not have to be destroyed, therefore PHALCON_MM_GROW()/PHALCON_MM_RESTORE() can be sometimes avoided;
  • removed TSRMLS from phalcon_array_merge_recursive_n() thanks to phalcon_get_current_key_w()

sjinks added 3 commits July 12, 2013 02:55
Box hash key into an undestructable zval so that a call to
phalcon_memory_observe() can be avoided
phalcon pushed a commit that referenced this pull request Jul 12, 2013
Faster phalcon_array_merge_recursive_n()
@phalcon phalcon merged commit e84de39 into phalcon:1.2.1 Jul 12, 2013
@ghost ghost deleted the faster-merge branch July 12, 2013 01:04
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.

2 participants