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

connection not reused? slow performance? #99

Open
sstadtl opened this issue Feb 7, 2016 · 3 comments
Open

connection not reused? slow performance? #99

sstadtl opened this issue Feb 7, 2016 · 3 comments

Comments

@sstadtl
Copy link

sstadtl commented Feb 7, 2016

I am having performance trouble with this implementation.
Data suggests, that the connections are not properly reused.
small sample:

1 message 1.59917497635s
5 messages: 5.86858487129s
4 messages: 4.87945485115

I build my own quick and dirty implementation based on simplepush.php from here:
(http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)
and the comments here:
(http://stackoverflow.com/questions/14563097/sending-multiple-iphone-push-notifications-apns-php-tutorial)

Performance data is almost constant no matter how many messages:

1: 0.842793564642
4: 0.841887950897
5: 0.855985164642

Can anyone confirm or debunk?

p.s.: Yes, my code does loop with "$pushManager->add($push);" and does send only once after the loop with "$pushManager->push();". this is not the cause.

foreach ($todolive as $val) {
    $push = new Push($apnsAdapterlive, $val[0], $val[1]);
    $pushManagerlive->add($push);
}
$pushManagerlive->push();
@oliverkaiser
Copy link

+1 slow performance for mass apn pushes

@nurfgun
Copy link

nurfgun commented Mar 12, 2016

experiencing the same issue. had to create a designated request url and snd push via an async call using curl request to it as a workaround. Any pull requests or some sort?

@slackernrrd
Copy link

I'm having the same issue, about 1 second per apn push message. Does anyone have a solution?

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

No branches or pull requests

5 participants