ok,i will try,thanks.
在 2017年7月27日星期四 UTC+8下午8:33:24,JuciÊ Andrade写道:
>
> 3702, I think you need to learn some fundamental concepts to better
> understand the problem at hand.
>
>
> Processors have more than one core. That means we have several threads
> running simultaneously. To let more than
3702, I think you need to learn some fundamental concepts to better
understand the problem at hand.
Processors have more than one core. That means we have several threads
running simultaneously. To let more than one thread access the same memory
region is a bad idea. If your program simply
o yea,thanks.it's a good way to improve the performance of my program.but
will it solve the problem,crashing?
在 2017年7月27日星期四 UTC+8上午12:26:36,JuciÊ Andrade写道:
>
> I mean bytes.Buffer.
>
> On Wednesday, July 26, 2017 at 8:08:13 AM UTC-3, JuciÊ Andrade wrote:
>>
>> Dear friend 3702, while you are
I mean bytes.Buffer.
On Wednesday, July 26, 2017 at 8:08:13 AM UTC-3, JuciÊ Andrade wrote:
>
> Dear friend 3702, while you are at it, please change that string appending
> strategy. Use a bufio.Buffer instead. It's way faster.
>
>
--
You received this message because you are subscribed to the
Dear friend 3702, while you are at it, please change that string appending
strategy. Use a bufio.Buffer instead. It's way faster.
> type bad.go
package main
import (
"fmt"
"time"
)
func main() {
var s string
begin := time.Now()
for i := 0; i != 10;