3 ms·
No offense taken. The code dump is pretty unfriendly. I dabbled with it more around version lol_html 0.2 and afterwards not that much. Partially, because I fel
by hawski 5y ago
No offense taken. The code dump is pretty unfriendly.
I dabbled with it more around version lol_html 0.2 and afterwards not that much. Partially, because I felt dumb. Still I feel like I need to look into documentation almost for every dot in the code.
Thank you, especially for your thorough investigation! I thought that the macro could do something funky, but didn't know about `cargo expand`. That is a very useful thing to know. Is there a good write up about such intricacies like Cow::Owned? I would think that the problem is probably something that people may have from time to time. Was there a way to wrap every element in something to make it work with the old version?
- iudqnolq 5y agoTo be honest lol_html looks like either someone new to Rust who got excited by the opportunity to do a lot of premature optimization or someone with very very intense perf needs. I strongly recommend to work with owned data whenever possible and clone freely. It's also macro heavy for something that doesn't seem like it should need to be. It's normal to need to constantly check the docs with macros, since they're their own language. EDIT: I realized it's by cloudflare. The architecture makes sense in terms of their needs.