Re: [go-nuts] Maddy - composable all-in-one mail server

2020-05-22 Thread Adrian Ratnapala
s.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/002d5e0d-2469-4f15-8eb0-e8bdc67419f8%40googlegroups.com. -- Adrian Ratnapala -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] weird sighup

2020-05-19 Thread Adrian Ratnapala
ving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUdMiJLvdfYe9%2B7fzjeuwJtu6uGxmW3UE-%3D%2BZ2DQLU%3D1Q%40mail.gmail.com. -- Adrian Ratnapala -- You recei

Re: [go-nuts] Re: Bencharking issue with b.StartTimer and b.StopTimer. Was: Benchmark using b.StopTimer and b.StartTimer has unexpected behaviour - to me at least

2020-03-24 Thread Adrian Ratnapala
s are a surprise, at least to me. Here are the results when Count = 8: >> >> Benchmark1-4 2706196 442 ns/op >> Benchmark2-4 1357482 873 ns/op >> Benchmark3-4 840729 1387 ns/op >> PASS >> ok bar.com/benchm

Re: [go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-23 Thread Adrian Ratnapala
into the documentation? And if so, where (in package fmt or errors)? Lots of programers will assume that because %w is new, then it must be the Go team's recommended "best practice". I think I was unconciously thinking that until I read the blog post. -- Adrian Ratnapala -- You r

[go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-22 Thread Adrian Ratnapala
API in the > future, you shouldn't wrap the error. Given the preference for *not* introducing APIs, doesn't that mean authors should stick to "%v" until they have clear reasons for using "%w". After all, it's always possible to switch to "%w" later

Re: [go-nuts] SFTPGo: a Golang performance story and some questions

2020-03-11 Thread Adrian Ratnapala
l could be appropriate, I'll You could have two separate pools, one for each size. This is basically a bucketed-allocator, but simpler because you already know the structure of your buckets. -- Adrian Ratnapala -- You received this message because you are subscribed to the Google Groups &q

Re: [go-nuts] SFTPGo: a Golang performance story and some questions

2020-03-11 Thread Adrian Ratnapala
> > > > Any particular reason you avoided something like sync.Pool ? It could be useful in your case, allocation pattern depending. > > > Hi, > > I initially evaluated the sync.Pool then I read this article: > > https://dzone.com/articles/memory-pooling-in-go-where-why-and-how > > and this issue