Re: [go-nuts] Re: Why do I get multiple times the same data?

2021-07-30 Thread Vadim Berezniker
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: >

golang-nuts@googlegroups.com

2019-08-16 Thread Vadim Maximov
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)?

[go-nuts] Goroutines memory leak

2018-04-29 Thread Vadim
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{

[go-nuts] [ANN] Slowpoke (database engine)

2018-04-17 Thread vadim kulibaba
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

Re: [go-nuts] [NEWBIE] syncmap - how to use it correctly

2018-04-13 Thread vadim kulibaba
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

[go-nuts] [NEWBIE] syncmap - how to use it correctly

2018-04-13 Thread vadim . kulibaba
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

[go-nuts] golang-nuts archive is available

2018-02-26 Thread Vadim Markovtsev
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

[go-nuts] pprof cum units

2016-12-13 Thread vadim
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

[go-nuts] [ANN] RapidMQ is released

2016-10-05 Thread vadim . shakun
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