#11222 Improve Low-Level Code Calculator performance
Low-Level Code Calculator performance improved by filtering out items without a Production BOM and replacing a List with a Dictionary for node key tracking, reducing calculation time significantly in real-world scenarios.
- 1files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-10-26 by duiliotacconi (community contribution) · 1 file (+15 -9), 1 AL · performance · tier official · reviewed (checked by Opus)
What changed
- Production BOM query now filters for non-empty BOM numbers before opening
- NodeKeysAddedToTree changed from List to Dictionary to improve lookup and insert performance from O(n) to near-constant
- Eliminates unnecessary cache invalidation and item loading for items without Production BOMs
- New extensibility point OnBeforeItemProductionBOMsOpen added to allow query customization
- Combined changes reduced calculation time from 10 hours to 2 hours in tested scenario
AL objects touched
- Codeunit 3687 “Low-Level Code Calculator”, Base Application: modified
Context
- Fixes: #11223 Low-Level Code Calculator (codeunit 3687) is slow: processes items without a Production BOM and uses a List instead of a Dictionary (closed)
- Work items: AB#654095
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: “the combination of these changes reduced low-level code calculation time from roughly 10 hours to about 2 hours”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Query Objects and Performance — possibly related: Low-level code calculator performance relates to query objects and database performance optimization. (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).