Skip to content

[16.0][IMP] l10n_nl_xaf_auditfile_export: reduce memory footprint#445

Open
hbrunn wants to merge 2 commits intoOCA:16.0from
hbrunn:16.0-l10n_nl_xaf_auditfile_export-memory
Open

[16.0][IMP] l10n_nl_xaf_auditfile_export: reduce memory footprint#445
hbrunn wants to merge 2 commits intoOCA:16.0from
hbrunn:16.0-l10n_nl_xaf_auditfile_export-memory

Conversation

@hbrunn
Copy link
Copy Markdown
Member

@hbrunn hbrunn commented Mar 26, 2026

this keeps memory usage for generating the auditfile constant by not having the xml fully loaded in memory. when having xmllint installed, the xml file is never fully loaded at all.

the zipped version then is the upper bound for memory usage, but thankfully xml compresses pretty well.

while being on it I made the auditfile_success flag readonly because users have no business changing that.

should migrate quite straightforwardly to higher versions

@hbrunn hbrunn added this to the 16.0 milestone Mar 26, 2026
@hbrunn
Copy link
Copy Markdown
Member Author

hbrunn commented Mar 26, 2026

pre-commit fixed in #446

@hbrunn hbrunn force-pushed the 16.0-l10n_nl_xaf_auditfile_export-memory branch from dc83c17 to 01aa472 Compare March 26, 2026 12:11
Copy link
Copy Markdown
Contributor

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM. Great improvement!

@hbrunn hbrunn force-pushed the 16.0-l10n_nl_xaf_auditfile_export-memory branch from 01aa472 to a3c07ca Compare April 14, 2026 03:49
@OCA-git-bot OCA-git-bot added mod:l10n_nl_xaf_auditfile_export Module l10n_nl_xaf_auditfile_export series:16.0 labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:l10n_nl_xaf_auditfile_export Module l10n_nl_xaf_auditfile_export series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants