On Saturday 21 August 2010 at 18:42, Patrick R wrote: > > What about switching to use StringBuilder internally? > Wouldn't StringBuilder still require lots of intermediate strings to > be used as input to the StringBuilder?
Yes, and due to an implementation quirk of StringBuilder the internal encoding of the resulting STRING may change from the expected form to the most compatible form. That *shouldn't* be an issue, but it caused a test failure when I tried it initially. Reading the whole file in one go seems the cheapest in terms of C function calls and memory allocations. -- c _______________________________________________ parrot-tickets mailing list [email protected] http://lists.parrot.org/mailman/listinfo/parrot-tickets
