richsage / RMSPushNotificationsBundle

NOT MAINTAINED! ⛔️ Push notifications/messages for mobile devices. Supports iOS, Android (C2DM, GCM), Blackberry and Windows Mobile (toast only). A Symfony2 bundle.
MIT License
321 stars 152 forks source link

Use identifier as array keys for performance check #107

Closed Kevinrob closed 9 years ago

Kevinrob commented 9 years ago

in_array will implique a O(n^2) complexity.
Each call to addGCMIdentifier() will iterate all array. If we add "n" ids, we will do it n^2.