Enhancement
The tl:ObjectTableModel provides the addAllRowObjects(List) method to insert multiple objects at once. However, this has quadratic runtime complexity. This is because it internally inserts the objects one by one, not all at once.
Improvement
The runtime complexity should be improved. It should be significantly better than quadratic. To achieve this, an optimized implementation should be created that inserts the objects all at once.
Code Migration
- Overrides of TableGridBuilder.addNewRows(...) have to be adapted: The parameter was generalized from List to Collection.
- Overrides of TestExcels.getConfigDir() need to be adjusted: Override getConfigDirUnchecked() instead.
- Overrides of TestExcels.getBaseDir() must be adjusted: Override getBaseDirUnchecked() instead.
Related tickets
The issue has come up in #27076.
Test
- TestSimpleObjectTableModel
- TestPriorityTableModel