[ 
https://issues.apache.org/jira/browse/MYNEWT-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15731175#comment-15731175
 ] 

ASF subversion and git services commented on MYNEWT-498:
--------------------------------------------------------

Commit 6f1a11a8f1529add64caa96b98309e1a1e562ca8 in incubator-mynewt-newt's 
branch refs/heads/develop from [~ccollins476]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-newt.git;h=6f1a11a 
]

MYNEWT-498 Newt - deps and syscfg calculated twice

This commit removes all duplicate syscfg calculation, and removes one
iteration of dependency calculation.

We still calculate dependencies a few times:
    (1) While calculating syscfg
    (2) While calculating loader deps (only for split)
    (3) While calculating app deps

We could combine (1) and (3) as an optimization.  (2) and (3) need to
remain separate, as the loader and app need to retain independent
dependendency graphs in order to identify common symbols during linking.


> Newt - depgraph and syscfg calculate twice per build
> ----------------------------------------------------
>
>                 Key: MYNEWT-498
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-498
>             Project: Mynewt
>          Issue Type: Bug
>            Reporter: Christopher Collins
>            Assignee: Christopher Collins
>
> Building with -ldebug shows that dependencies, syscfg, and APIs get resolved 
> twice.  In the code, this happens in the following places:
> * {{resolve/resolve.go (ResolveCfg())}}
> * {{builder/build.go (PrepBuild())}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to