ada icon indicating copy to clipboard operation
ada copied to clipboard

Let's consider dropping ada_url::url in next major

Open anonrig opened this issue 1 year ago • 2 comments
trafficstars

Url aggregator is the mostly used parser. Let us consider dropping url for the next major and maybe calling it url?

This would simplify codebase a lot and make our jobs easier for can parse, as well as urlpattern?

anonrig avatar May 13 '24 00:05 anonrig

cc @lemire what do you think?

anonrig avatar May 14 '24 00:05 anonrig

@anonrig Hmmm... We should always have some care before introducing a breaking change.

How sure are we that there is no user? If we can be certain that nobody uses it, then I am all for pruning it.

But let us not break people's code without warning !!!

lemire avatar May 14 '24 16:05 lemire

Strongly recommend taking things through a proper deprecation cycle on stuff like this.

jasnell avatar May 17 '24 17:05 jasnell

Strongly recommend taking things through a proper deprecation cycle on stuff like this.

Which deprecation cycle do you recommend we follow? I think first we need to document that.

anonrig avatar May 17 '24 18:05 anonrig

This goes a bit against my proposal to use the fact that we have two functionally equivalent implementations to improve testing.

lemire avatar May 17 '24 22:05 lemire

While improving ada::can_parse, I realized that if constexpr (XXX) have 50-60ns performance impact per URL.

anonrig avatar Jun 20 '24 00:06 anonrig

@anonrig We we can do if constexpr, then we definitively should... it makes the code cleaner.

lemire avatar Jun 20 '24 01:06 lemire