Steve Lawrence created DAFFODIL-2652:
----------------------------------------
Summary: Ability to disable all alignment
Key: DAFFODIL-2652
URL: https://issues.apache.org/jira/browse/DAFFODIL-2652
Project: Daffodil
Issue Type: Bug
Components: Front End
Reporter: Steve Lawrence
Our algorithm for determining when alignment parsers/unparsers are needed is
complex and imperfect--there are simply some cases where we can not statically
know if alignment will be needed or not. DAFFODIL-2626 improved some of these
cases, but things like global declarations still lead to alignment ambiguities.
This can lead to Daffodil erring on the safe side and requireing alignment
parsers/unparsers, even though they may not be necessary. This can lead to
additional overhead, but more importantly can lead to during unparsing that are
difficult to resolve.
The majority of file formats have very simple alignment–everything is either
all byte aligned or all bit aligned. So it's safe to simply exclude all
alignment checking. We don't want to do this by default, but we should allow a
user to add a property or tunable that allows them to specify that they know
everything is correctly aligned, even if Daffodil can't statically figure it
out, and to disable all alignment checking/parsers/unparsers.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)