Skip to content

Using UTF-16 to handle encoding between String and NSString. #22

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

Closed
yulingtianxia opened this issue Aug 30, 2020 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request iOS

Comments

@yulingtianxia
Copy link
Member

Someone said that UTF-16 encoding is faster for Dart.

@yulingtianxia
Copy link
Member Author

yulingtianxia commented Sep 13, 2020

Benchmark (ms, run 10000 times):
String <-> utf8 <-> NSString: 650-700
String <-> utf16 <-> NSString: 417-508

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iOS
Projects
None yet
Development

No branches or pull requests

1 participant