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

Use a different type than String #16

Open
parsonsmatt opened this issue Dec 9, 2022 · 10 comments
Open

Use a different type than String #16

parsonsmatt opened this issue Dec 9, 2022 · 10 comments

Comments

@parsonsmatt
Copy link
Contributor

I'm investigating the performance of Haddock and noticed that this library uses String pervasively.

It appears that the majority of the library is using these Strings not for introspection but for construction and then final rendering. I'd use Data.ByteString.Builder for that.

@cdornan
Copy link
Contributor

cdornan commented Dec 9, 2022

I agree — but I am not aware of plans to fix this. I think the package is regarded as lagacy, anyone caring about performance more more likely to move to one of the more modern alternatives.

@parsonsmatt
Copy link
Contributor Author

This package is used in haddock since it is a boot package. Rendering HTML is currently a problem for our build at work. I'm investigating a way to fix this without digging into all these guts, but there are some prety low hanging fruit here.

I can put some time/effort into providing a migration.

@cdornan
Copy link
Contributor

cdornan commented Dec 9, 2022

@parsonsmatt if you want work on this I am very happy to assist — as long as no heavy lifting is involved as I do not have the bandwidth right now. Would you be interested in becomming a maintainer?

@parsonsmatt
Copy link
Contributor Author

Sure! I'd be happy to contribute a bit here.

@cdornan
Copy link
Contributor

cdornan commented Dec 11, 2022

@parsonsmatt OK consider yourself an xhtml maintainer while I work out how to get you commit rights, etc.

@Bodigrim
Copy link
Contributor

Bodigrim commented Jul 4, 2023

@parsonsmatt if you want work on this I am very happy to assist — as long as no heavy lifting is involved as I do not have the bandwidth right now. Would you be interested in becomming a maintainer?

Tangentially, it might be a good idea to ask CLC to adopt this package as one of core libraries. Dependencies of haddock are pretty much core ;)

@cdornan
Copy link
Contributor

cdornan commented Jul 5, 2023

FWIW, I would be very happy for the CLC to pick this up -- I think it makes a great deal of sense.

@Bodigrim
Copy link
Contributor

Bodigrim commented Jul 5, 2023

@cdornan are there any other stakeholders whom I should ask as well? CC @parsonsmatt

@cdornan
Copy link
Contributor

cdornan commented Jul 7, 2023

@Bodigrim there are no other stakeholders that I am aware of.

@Bodigrim
Copy link
Contributor

Bodigrim commented Nov 1, 2023

CLC has approved adopting xhtml as a core library in https://groups.google.com/g/haskell-core-libraries/c/_VweuQrNG6c/m/72NtkR_5AwAJ.

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 a pull request may close this issue.

3 participants