go: compute sf smartly