[
https://issues.apache.org/jira/browse/DAFFODIL-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Beckerle closed DAFFODIL-1435.
-----------------------------------
Resolution: Won't Fix
Need profiling evidence for perf issues.
> Performance: avoid allocating String just to pass to trimByJustification
> ------------------------------------------------------------------------
>
> Key: DAFFODIL-1435
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1435
> Project: Daffodil
> Issue Type: Improvement
> Components: Back End, Performance
> Reporter: Mike Beckerle
> Priority: Major
>
> Why do we construct the string here? We could do the trim on the string
> buffer, (avoiding allocations), and have the trim call return the string
> itself. (Saves one string copy.)
> There's another place where trimByJustification is called, on the result of
> DataInputStream.getSomeString(...).
> Really that should return a StringBuilder so that trim can happen in-place.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)