Closed underfin closed 7 months ago
In a bunch of places, I was thinking about using
IndexSet
instead of manually implementing that same functionality as well.
I'm not sure the performance using IndexSet
, if you refactor it and I'm ok to test it and give performance profile for it.
Not sure about the performance aspect of it. I just wanted to clean up the code, because implementing this manually looks out of place.
Though I expect IndexSet
to have better performance rather than implementing it manually with a Vec
+ HashMap
.
OK. Get it.
IndexSet
/IndexMap
have the minor flaw that you can't change a set element (or the key of a map element, respectively) in-place. If you want to modify the element at index i
this becomes a whole lot more annoying. But honestly, I'm inclined to nix at least set_source
entirely. In strip_prefixes
there's unfortunately no way around copying the entire set of sources.
Maybe we can merge it and refactor it at next. Though it has a break change, but the performance it is important for oxc/swc etc.
@Swatinem What can I do for merge the pr? Or Could you publish an alpha/beta for this? Thank you.
Could you publish an alpha/beta for this?
That would be the more difficult thing I believe :-D
Sentry has some custom automation around publishing to crates.io, and I’m not quite sure we can even do prereleases.
I can merge this PR as is, though I would also like to get #77 in, as that also has some breaking changes, to minimize the number of major releases. Unfortunately, we don’t really have enough time to properly maintain this crate at the time :-( There is a lot of cleanups we would love to do as well.
Thank you. @Swatinem Could you publish an new version for them?
@Swatinem Sorry for ping again. Maybe you missing my response.
Published 8.0.0
with this breaking change, and another breaking change due to the range mapping proposal.
Not too happy about not being able to maintain API stability for a longer time frame, but I just have to face reality here :-D
Here has some unnecessary memory alloc, and the pr intends to fix them.
Here has a example.