You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
To use ReportEvent with parameters forces a Dictionary<string, object> which means there will always be boxing allocations to convert to object.
Since it passes the dictionary to ymm_reportEventWithParameters (message, JsonStringFromDictionary (parameters)) internally could we have another non-allocating method exposed please? one that accepts a json string that we created?
then we could generate our own JSON string without alloc via another library or whatever.
If you like this idea but are too busy to implement please let me know and I will submit pull request!
The text was updated successfully, but these errors were encountered:
HitCache
changed the title
Unity iOS (and probably other platforms) ReportEvent with parameters forces Boxing Allocations
Unity with iOS target (and probably other platforms) ReportEvent with parameters forces Boxing Allocations
Aug 16, 2020
Hi @NesterovichAlexey
To use
ReportEvent
with parameters forces aDictionary<string, object>
which means there will always be boxing allocations to convert to object.Since it passes the dictionary to
ymm_reportEventWithParameters (message, JsonStringFromDictionary (parameters))
internally could we have another non-allocating method exposed please? one that accepts a json string that we created?for example something like:
then we could generate our own JSON string without alloc via another library or whatever.
If you like this idea but are too busy to implement please let me know and I will submit pull request!
The text was updated successfully, but these errors were encountered: