Project

General

Profile

Actions

Bug #483

closed

generate_packets.py: array-diff behavior for variable-sized arrays not clearly defined

Added by Alina Lenk 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Bootstrap
Target version:
Start date:
04/19/2024
Due date:
% Done:

0%

Estimated time:

Description

When a variable-sized array grows, array-diff doesn't currently have a reasonable, defined behavior for how to treat the newly-added elements.

Three options:
  • Always transmit new elements
  • Diff them relative to empty/zeroed elements
  • Diff them relative to whatever element used to exist in that spot when the array was last that big

The third option is what we're technically doing right now, although not necessarily consistenly so, since no code specifically cares about keeping those extra elements the same.
The first option (always transmitting the new elements) is probably the best option. I don't expect variable-sized arrays to contain many empty elements, but if that does end up being the case (or if we do multi-dimension array-diff), we can still do the second option later.


Files

Actions

Also available in: Atom PDF