Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for locale (0.16 sec)

  1. doc/go_mem.html

    For example, on essentially all CPUs, it is valid to rewrite
    </p>
    
    <pre>
    n := 0
    for i := 0; i < m; i++ {
    	n += *shared
    }
    </pre>
    
    into:
    
    <pre>
    n := 0
    local := *shared
    for i := 0; i < m; i++ {
    	n += local
    }
    </pre>
    
    <p>
    provided it can be proved that <code>*shared</code> will not fault on access,
    because the potential added read will not affect any existing concurrent reads or writes.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top