[MDSAL-91] StreamWriterGenerator emits overly-pessimistic sizing hints Created: 12/Jun/15 Updated: 16/Mar/19 |
|
| Status: | Confirmed |
| Project: | mdsal |
| Component/s: | Binding runtime |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Description |
|
StreamWriterGenerator does not actually look at the data being processed before emitting a size hint, but rather emits a very pessimistic hint based on the assumption that all fields and all possible augmentation it sees in the schema context at code generation. This is wrong, as it should either emit a hint based on the actual data, or send down UNKNOWN_SIZE. |
| Comments |
| Comment by Robert Varga [ 12/Jun/15 ] |
|
With the initial bug fixed in Lithium, the follow-up work is to evaluate performance aspects of determining the actual number of direct children from a particular DTO. |