Skip to content

Reduce memory reallocation in FirebasePushNotificationSender #9

@aykut-aktas-covergo

Description

@aykut-aktas-covergo

....\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.

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