On Thu, Apr 22, 2010 at 9:05 PM, Ryan Dahl <[email protected]> wrote: > On Thu, Apr 22, 2010 at 12:19 AM, Anton Muhin <[email protected]> wrote: >> Ryan, >> >> just a quick question: couldn't external strings solve the problem for >> you? They sound pretty much like Buffer you describe as far as I can >> judge from your email. >> >> yours, >> anton. > > I hadn't considered using external strings because I need to write > utf-8 mostly. I suppose it would be possible to have a subclass of > ExternalStringResource which allocated and stored its own reference to > utf-8 encoded data when pushing a string to socket. This might work.
Couldn't you use Ascii external strings, but actually store encoded data? If you only use it as a buffer, that should probably work fine, but you'd better experiment. yours, anton. > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
