Skip to content

fix(ldif): prevent yaml parser from parsing ldif files#929

Merged
marle3003 merged 1 commit intomarle3003:mainfrom
fastrde:main
Apr 15, 2026
Merged

fix(ldif): prevent yaml parser from parsing ldif files#929
marle3003 merged 1 commit intomarle3003:mainfrom
fastrde:main

Conversation

@fastrde
Copy link
Copy Markdown

@fastrde fastrde commented Apr 14, 2026

When ldif files are used, the yaml parser tries to parse these files. That leads to memory usage up to ~1.2 GB for a 170 KB ldif file and over 8 GB for a 2.2 MB ldif file.

With this simple fix, the yaml parser is prevented from parsing ldif files and the memory usage drops to ~12 MB for the 170 KB file and ~32 MB for the 2.2 MB file.

@marle3003 marle3003 merged commit 18072ee into marle3003:main Apr 15, 2026
4 checks passed
@marle3003
Copy link
Copy Markdown
Owner

Thank you for your help in improving Mokapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants