Some (probably inaccurate) stats about Dub packages

WebFreak001 at
Fri Oct 22 13:43:17 UTC 2021

On Friday, 22 October 2021 at 12:48:19 UTC, Imperatorn wrote:
> On Friday, 22 October 2021 at 11:47:09 UTC, WebFreak001 wrote:
>> On Friday, 22 October 2021 at 11:17:11 UTC, SealabJaster wrote:
>>> [...]
>> that PR is completely different and removes the internal 
>> MongoDB search, replacing it with "packageName.canFind(query)" 
>> - that is not the place you would want to extend this search 
>> into.
>> [...]
> It was mainly done as the current search is unusable as 
> everyone knows.

I think it's ok for searching for functionality - if you start 
searching for package names it becomes worse, especially if they 
are made up words or contain punctuation.

Your improvement is great and I would love to put it in, but the 
implementation is not good as it is right now:
- it's getting worse results if you typo or have different tense 
or form of words
- it first fetches all the documents into memory and then filters 
on them (which will take longer and longer the more packages we 
- the PR is mixed with unrelated deprecation fixes which should 
really be done separately (but should definitely be done!)

More information about the Digitalmars-d mailing list