Skip to content

Reduce memory reallocation in FirebasePushNotificationSender #9

Open

Description

@aykut-aktas

....\src\AdsPush.Firebase\FirebasePushNotificationSender.cs

Object Instantiation within Loops:
In the SendBatchNotificationAsync method, you are creating multiple instances of FirebaseNotificationResult within a loop, using the CreateUsingFirebaseSendResponse method.

Recommendation: If you expect to have a large number of notifications and responses, consider using a more efficient data structure like a List with preallocated capacity. This can help reduce memory reallocation overhead during list growth.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions