fub is declared outside the for loop and io.Copy(&fub, &q) will append to
the buffer.
On Thu, Jul 29, 2021 at 11:41 AM hyogy hyogy wrote:
> I am more and more convinced that *io.Copy(&fub, &q)* is the problem
>
> Il giorno mercoledì 28 luglio 2021 alle 17:11:40 UTC+2 hyogy hyogy ha
> scritto:
>
Hi, all!
Is *for.*..*range* over an address/reference of an array faster than
regular *for...range*? For instance:
arr :=[...]int{1,2,3}
for _,v := range &arr{
fmt.Println(v)
}
I heard that it is slightly faster for huge arrays, but why is it so? And
is it actually true (or makes sense)?
I'm have memory leak in this function but i don't know where.
func CheckProxySOCKS(prox string, c chan QR) (err error) {
//Sending request through proxy
dialer, _ := proxy.SOCKS5("tcp", prox, nil, proxy.Direct)
timeout := time.Duration(5 * time.Second)
httpClient := &http.Client{
Hi Everyone,
I finished simple and effective key/value store with nice api:
https://github.com/recoilme/slowpoke
The performance was not a target of this database but it performs well and
not so slow as i expected. It just stores values in files and keys with
value addresses in memory, with per
Wow, thank you, Jan
пятница, 13 апреля 2018 г., 15:43:51 UTC+3 пользователь Jan Mercl написал:
>
> On Fri, Apr 13, 2018 at 2:29 PM >
> wrote:
>
> > What i do wrong?
>
> The code relies on the bool value in 'ok', returned from .Load(), but that
> _does not_ mean some other goroutine, once you re
Please explain me(
I dont understand why syncmap - not sync
If i try Load/Store from multiple goroutins - i have vary values with same
key in syncmap
If i try lock with mutex- all ok. But is syncmap not thread safe by default?
Locked version of function:
https://github.com/recoilme/slowpok
Dear gophers,
I am happy to announce that there is an (unofficial) dataset with all the
messages posted in this group since the very
beginning: https://www.kaggle.com/vmarkovtsev/gonuts
I encourage data scientists and ML engineers who use Go to play with it.
Here is a list of sample problems w
According to some older pprof tutorials, the units reported by "top" or
"web" are the numbers of calls. Newer tutorials as well as my own
experiments show seconds instead. For example, compare:
(pprof) top10
Total: 2525 samples
298 11.8% 11.8% 345 13.7% runtime.mapaccess1_fast64
268 10.6% 22.4
RapidMQ is a pure, extremely productive, lightweight and relaible library
for managing of the local messages queue
Full information about library you can find here:
https://github.com/sybrexsys/RapidMQ
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" g