[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread Dave Cheney
With that many deps, the linking numbers could be expected, Go 1.7 improves 
this significantly.

I cannot explain the compilation time for the package. I recommend waiting 
til the end of the day and upgrading to Go 1.7 as it us unlikely that any 
fix for this will be backported to Go1.6.x


On Tuesday, 16 August 2016 07:43:41 UTC+10, James Pettyjohn wrote:
>
> No, it's some hundreds of strings across that whole package, none longer 
> than 100 characters. No giant static XML strings or the like.
>
> Thinking it might be telling to see dependency information I ran into 
> (your) articles on golang dependency tools 
> , so if it's 
> of any note:
>
> go list -f '{{ join .Imports "\n" }}' site_www2 | wc -l
>   93
> go list -f '{{ join .Deps "\n" }}' site_www2 | wc -l
>  257
>
> Don't know that this is very telling. 
>
> Is there another important metric as far as go compilation? Or another 
> compiler option to see numbers branches or the like which could point up 
> something?
>
>
> On Monday, August 15, 2016 at 1:40:19 PM UTC-7, Dave Cheney wrote:
>>
>> That looks like the case.
>>
>> Do you include a large amount of static data in the site_www2 package? 
>>
>

-- 
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.


[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread James Pettyjohn
No, it's some hundreds of strings across that whole package, none longer 
than 100 characters. No giant static XML strings or the like.

Thinking it might be telling to see dependency information I ran into 
(your) articles on golang dependency tools 
, so if it's of 
any note:

go list -f '{{ join .Imports "\n" }}' site_www2 | wc -l
  93
go list -f '{{ join .Deps "\n" }}' site_www2 | wc -l
 257

Don't know that this is very telling. 

Is there another important metric as far as go compilation? Or another 
compiler option to see numbers branches or the like which could point up 
something?


On Monday, August 15, 2016 at 1:40:19 PM UTC-7, Dave Cheney wrote:
>
> That looks like the case.
>
> Do you include a large amount of static data in the site_www2 package? 
>

-- 
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.


[go-nuts] Re: Increase speed of repeated builds

2016-08-15 Thread Dave Cheney
That looks like the case.

Do you include a large amount of static data in the site_www2 package? 

-- 
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.


[go-nuts] Re: Increase speed of repeated builds

2016-08-12 Thread Dave Cheney
Thank you for this information. There is no timing information.

On Saturday, 13 August 2016 08:01:19 UTC+10, James Pettyjohn wrote:
>
> Here we go:
>
> WORK=/var/folders/j7/4pq3fms94f16lq7sljs3gd1cgp/T/go-build579975441
> site_www2
> mkdir -p $WORK/site_www2/_obj/
> mkdir -p $WORK/site_www2/_obj/exe/
> cd /Users/jp/git/project/src/site_www2
> /usr/local/go/pkg/tool/darwin_amd64/compile -o $WORK/site_www2.a -trimpath 
> $WORK -p main -complete -buildid 66dc2ac41b6b8158286be8a6b59f302b6ff26b19 
> -D _/Users/jp/git/project/src/site_www2 -I $WORK -I 
> /Users/jp/git/project/pkg/darwin_amd64 -pack ./activities.go 
> ./admin_handler.go ./attrs.go ./awards.go ./blockdata.go ./blocks.go 
> ./calendar.go ./combined.go ./context-editable.go ./context-funcmap.go 
> ./context-orgs.go ./context-store.go ./context.go ./data.go ./datafile.go 
> ./draft_pages_attr_manager.go ./duration.go ./email_subscribe.go 
> ./error_handler.go ./events_handler.go ./fake_attrs.go ./features.go 
> ./f-vchannel.go ./form-submitter-core.go ./form-submitter-item-data.go 
> ./form-submitter.go ./io_handler.go ./igcache.go ./event.go ./legacy.go 
> ./main.go ./a-handler.go ./menus.go ./notfound.go ./org_handler.go 
> ./profile.go ./published_pages_handler.go ./reaches_handler.go 
> ./redirects.go ./region-slideshow.go ./regions.go ./robots-txt.go ./rss.go 
> ./search.go ./security-handler.go ./server.go ./sessions.go ./sitemap.go 
> ./store-handler-r.go ./store-handler.go ./store-sessions.go ./submitter.go 
> ./tagmapper.go ./tags.go ./temp_draft_api.go ./translation-import.go 
> ./util-admin-access.go ./util.go ./video-c.go ./videos.go
> cd .
> /usr/local/go/pkg/tool/darwin_amd64/link -o $WORK/site_www2/_obj/exe/a.out 
> -L $WORK -L /Users/jp/git/project/pkg/darwin_amd64 -extld=clang 
> -buildmode=exe -buildid=66dc2ac41b6b8158286be8a6b59f302b6ff26b19 -X 
> main.CacheId=8d815e7 $WORK/site_www2.a
> mkdir -p /Users/jp/git/project/bin/
> mv $WORK/site_www2/_obj/exe/a.out /Users/jp/git/project/bin/site_www2
>
> On Thursday, August 11, 2016 at 10:47:10 PM UTC-7, Dave Cheney wrote:
>>
>> You mentioned timing your build with -x, can you please provide those 
>> details. 
>
>

-- 
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.


[go-nuts] Re: Increase speed of repeated builds

2016-08-11 Thread Dave Cheney
You mentioned timing your build with -x, can you please provide those details. 

-- 
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.


[go-nuts] Re: Increase speed of repeated builds

2016-08-11 Thread James Pettyjohn
Maybe I wasn't clear, I am not sure what else to look at in this scenario. 
Whatever details you have in mind, i.e. which ones are relevant, is what 
I'm missing.

On Thursday, August 11, 2016 at 8:16:38 PM UTC-7, Dave Cheney wrote:
>
> Can you please post some details. 

-- 
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.