enhancement
The tl:ObjectTableModel provides the addAllRowObjects(List) method for inserting multiple objects at once. However, this method has quadratic time complexity. This is because it inserts the objects internally one after another, rather than all at once.
Improvement
The runtime complexity needs to 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(...) ` must be updated: The parameter has been generalized from `List ` to ` Collection `.
- Overrides of TestExcels.getConfigDir() must be updated: Instead, override getConfigDirUnchecked().
- Overrides of TestExcels.getBaseDir() must be updated: Override getBaseDirUnchecked() instead.
Related Tickets
The issue was identified in the context of #27076.
Test
- TestSimpleObjectTableModel
- TestPriorityTableModel