xbrlus / xule

An open-source XBRL processor for business rules, rendering and custom data reporting. See https://xbrl.us/xule for documentation and https://xbrl.us/xule-editor for a VS Code syntax highlighter.
Apache License 2.0
24 stars 10 forks source link

Stop recreating fact index if it already exists #2

Closed derekgengenbacher-wf closed 2 years ago

derekgengenbacher-wf commented 2 years ago

Description

Xule creates a fact index for each rule set and the ferc renderer has a rule set for each template, so it's recreating an identical index for each template. Removing this redundancy improves performance by 30-40%.

Xule does add to the index at one point during rule evaluation to copy information for aspects not included within the instance (and so not discovered during the initial indexing stage).

@davidtauriello

davidtauriello commented 2 years ago

see d4a89e1