Re: Thread.setName question

2010-08-10 Thread David Holmes
Xiaobin Lu said the following on 08/11/10 08:07: Thanks for your reply. For a lot of enterprise applications (such as the one I work for), a fair amount of time goes to that Thread.setName call which I believe a significant portion is to do new char allocation and copy char array etc. So I thin

Re: Thread.setName question

2010-08-10 Thread Xiaobin Lu
Hi David, Thanks for your reply. For a lot of enterprise applications (such as the one I work for), a fair amount of time goes to that Thread.setName call which I believe a significant portion is to do new char allocation and copy char array etc. So I think we should give a second thought about ho

Re: Thread.setName question

2010-08-10 Thread David Holmes
Hi Xiaobin, Xiaobin Lu said the following on 08/11/10 07:42: Would anyone please let me know why we convert the incoming argument of Thread.setName() to a char array? Why can't we just store the incoming argument to the name since String is immutable anyways? I know I've wondered the same thi