Игорь Демьянов
2014-04-28 20:46:43 UTC
I'm ported node_redis to Dart language. https://github.com/DisDis/dart_redis
I found big problem. Redis uses UTF8, Dart uses UTF16.
I used "UTF8.decode" for convert input socket data.
String bufferToString(List<int> data) => UTF8.decode(data);
But that is bad performance(lose 56%).
How to set/get internal byte(0-255) list of string?
P.S.: string.codeUnits return int(0-65535) list.
I found big problem. Redis uses UTF8, Dart uses UTF16.
I used "UTF8.decode" for convert input socket data.
String bufferToString(List<int> data) => UTF8.decode(data);
But that is bad performance(lose 56%).
How to set/get internal byte(0-255) list of string?
P.S.: string.codeUnits return int(0-65535) list.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+unsubscribe-dYxm/***@public.gmane.org
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+unsubscribe-dYxm/***@public.gmane.org