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

bug: Performance hit when using arrays with plugin events #4308

Open
Exocomp opened this issue Mar 8, 2021 · 0 comments
Open

bug: Performance hit when using arrays with plugin events #4308

Exocomp opened this issue Mar 8, 2021 · 0 comments

Comments

@Exocomp
Copy link

Exocomp commented Mar 8, 2021

Bug Report

Create a plugin using the steps at https://capacitorjs.com/docs/plugins/ios

When emitting events I use the following method as described in the doc:

self.notifyListeners("myPluginEvent", data: [:])

Issue:

When emitting a string there is no performance hit. However, when emitting an array there is a performance hit of almost 30ms.

During testing the size of the string and the array is about 100k bytes.

I suspect the serializer for json might need to be optimized.

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

No branches or pull requests

1 participant