Nice!

I got the honor of filing the first feature request:
https://github.com/pwaller/goimports-update-ignore/issues/1  :-)


On Sat, Jul 16, 2016 at 4:28 AM, Peter Waller <pe...@pdftables.com> wrote:

> With <https://github.com/golang/go/issues/16386>, goimports now supports
> a mechanism for ignoring non-go-code directories. For cluttered source
> directories, this makes goimports quite a lot faster.
>
> The problem is, if you want to get the most benefit of this you may need
> to make and maintain a big ignore file.
>
> Enter goimports-update-ignore. See
> https://github.com/pwaller/goimports-update-ignore for more information.
>
> For me, goimports-update-ignore brings the CPU time down from 4200ms to
> 600ms and runtime from 800ms to 200ms.
>
>
> ---
>
> Here's what the result looks like.
>
> $ goimports-update-ignore -measure-only
> Ignored 0 directories. goimports considers 44367 directories in 877ms
> (cpu=4208ms).
>
> $ goimports-update-ignore -max-depth 1
> Ignored 34 directories. goimports considers 27794 directories in 486ms
> (cpu=2224ms).
>
> $ goimports-update-ignore -max-depth 2
> Ignored 118 directories. goimports considers 25461 directories in 406ms
> (cpu=1820ms).
>
> $ goimports-update-ignore -max-depth 3
> Ignored 304 directories. goimports considers 13238 directories in 267ms
> (cpu=1224ms).
>
> $ goimports-update-ignore -max-depth 4
> Ignored 572 directories. goimports considers 11194 directories in 234ms
> (cpu=684ms).
>
> $ goimports-update-ignore -max-depth 5
> Ignored 797 directories. goimports considers 9943 directories in 193ms
> (cpu=664ms).
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to