Re: We can see the performance difference from the simple functions in Tango and Phobos

2009-07-30 Thread zsxxsz
== Quote from Jarrett Billingsley (jarrett.billings...@gmail.com)'s article > On Thu, Jul 30, 2009 at 9:35 PM, zsxxsz wrote: > > Hi, below are the functions from Phobos and Tango with the same use, we can > > see why so many people like Tango more than Phobos. > Uh, who exactly are you trying to co

Re: We can see the performance difference from the simple functions in Tango and Phobos

2009-07-30 Thread Andrei Alexandrescu
zsxxsz wrote: Hi, below are the functions from Phobos and Tango with the same use, we can see why so many people like Tango more than Phobos. [snip] We can see the function's performance from Tango is more high than which one from Phobos. This maybe not the only one function difference. :) Th

Re: We can see the performance difference from the simple functions in Tango and Phobos

2009-07-30 Thread Jarrett Billingsley
On Thu, Jul 30, 2009 at 9:35 PM, zsxxsz wrote: > Hi, below are the functions from Phobos and Tango with the same use, we can > see why so many people like Tango more than Phobos. Uh, who exactly are you trying to convince? For that matter, what's the point of this thread?

Re: We can see the performance difference from the simple functions in Tango and Phobos

2009-07-30 Thread Walter Bright
zsxxsz wrote: Hi, below are the functions from Phobos and Tango with the same use, we can see why so many people like Tango more than Phobos. In Phobos: string encode(string s) { // The ifs are (temprarily, we hope) necessary, because // std.string.write.replace // does not do cop

We can see the performance difference from the simple functions in Tango and Phobos

2009-07-30 Thread zsxxsz
Hi, below are the functions from Phobos and Tango with the same use, we can see why so many people like Tango more than Phobos. >>> In Phobos: string encode(string s) { // The ifs are (temprarily, we hope) necessary, because // std.string.write.replace // does not do copy-on-write, bu