[
https://issues.apache.org/jira/browse/DAFFODIL-3060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046427#comment-18046427
]
Olabusayo Kilo commented on DAFFODIL-3060:
------------------------------------------
We cannot only consider the previous term as this results in incorrect
alignment if the previous term alignment we got, was optional and actually
missing. We should look into linearizing the current code, but that's an minor
improvement
> Refactor priorAlignment prior sibs logic
> ----------------------------------------
>
> Key: DAFFODIL-3060
> URL: https://issues.apache.org/jira/browse/DAFFODIL-3060
> Project: Daffodil
> Issue Type: Improvement
> Components: Back End
> Affects Versions: 4.0.0
> Reporter: Olabusayo Kilo
> Assignee: Olabusayo Kilo
> Priority: Major
> Fix For: 4.1.0
>
>
> Currently we calculate/return alignment for all potential prior sibs for each
> term, meaning if we have required element A, optional B1 to BN, and current
> term C, for each term, we calculate the alignments of each sibs
> quadratically. This can be optimized to linearly and still account for
> optionality if for the current term, we only consider the endingAlignment of
> its immediate previous sibling
--
This message was sent by Atlassian Jira
(v8.20.10#820010)