zhenjl / xparse

Various parsing utilities, such as IP, time, and top-level-domain, in Go
http://godoc.org/github.com/surgebase/xparse
Apache License 2.0
24 stars 7 forks source link

etld/fsm.go triggers pathological compiler case #1

Open rogpeppe opened 8 years ago

rogpeppe commented 8 years ago

I tried to compile it under Go 1.7rc1 and the compiler never completed.

See https://github.com/golang/go/issues/16407 - there's a suggestion by @josharian for a possible way to work around the issue in fsm.go code.

zhenjl commented 7 years ago

It seems like the latest go 1.7.1 was able to finish the compilation:

time go test

PASS ok github.com/zhenjl/xparse/etld 0.014s

real 2m10.354s user 1m50.362s sys 0m2.138s

Not great since it's still 2 minutes.