[go-nuts] Re: Go is two times slower than python code?

2016-12-01 Thread Nate Finch
Generally, the answer is, don't use regular expressions. This is good advice in any language and for almost any problem. In this specific case, if you care about speed, write some more specific code that does what you need instead of falling back on regular expressions. On Wednesday,

[go-nuts] Re: Go is two times slower than python code?

2016-12-01 Thread Rich
Have you tried searching https://godoc.org for a PCRE that may suite better? https://godoc.org/github.com/glenn-brown/golang-pkg-pcre/src/pkg/pcre On Tuesday, March 9, 2010 at 9:52:16 AM UTC-5, Alex Dong wrote: > > I'm writing a simple 'word picker' using golang and python. It > basically

[go-nuts] Re: Go is two times slower than python code?

2016-11-30 Thread Thomas Modeneis
+6 years later, It seems that this issue still a problem. There is a open ticket on github for it: https://github.com/golang/go/issues/16791 I've been facing this issue for a while, and on my experience the best workaround is to serialize the CSV to the disk after reading it. Cheers. On