Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't remove namespaces from attributes #61

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

maxRN
Copy link
Contributor

@maxRN maxRN commented Sep 4, 2024

A very naive implementation of including the namespace in attribute names.
Could lead to performance and memory problems when a lot of namespaced attributes are present, since this creates a new string for each attribute.
There might be an argument for changing the API of Markup instead, but this was the most straightforward fix I could think of.

Fixes #12

@maxRN maxRN marked this pull request as ready for review September 4, 2024 11:40
@aantron aantron merged commit eda4c91 into aantron:master Sep 5, 2024
3 checks passed
@aantron
Copy link
Owner

aantron commented Sep 5, 2024

Thank you! The string allocations are unlikely to be a problem in light of all the other allocations done while parsing.

@dmbaturin
Copy link
Contributor

@aantron Do you plan to make an OPAM release with this change in the near future?

@aantron
Copy link
Owner

aantron commented Sep 5, 2024

Yes! In fact, immediately :)

@aantron
Copy link
Owner

aantron commented Sep 5, 2024

This pull request was closed.
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.

Lost of namespaces
3 participants