FAQ

On Tuesday, April 28, 2015 at 12:52:46 PM UTC+1, Damian Gryski wrote:


On Tuesday, April 28, 2015 at 1:26:16 PM UTC+2, Alberto García Hierro
wrote:
I propose to add an opt-in cache to tools/imports, so programs like
goimports might decide to use this cache.
At least for the `goimports' case, I think a solution closer to what
exists inside Google might be nicer. AIUI, goimports does an rpc call to
an external service to perform the symbol -> import mapping. This
functionality could be added to the public version of goimports, using data
harvested by godoc running with -index.

Damian
The symbol -> import mapping is not the bottleneck. The bottleneck is
parsing all packages in GOPATH and reading all directories under it. In
code terms, most of time is spent in tools/imports.loadPkg

Regards,
Alberto

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 16 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedApr 28, '15 at 11:26a
activeApr 28, '15 at 8:39p
posts16
users8
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase