tang donghai
tang donghai
I have implemented the Damerau–LevenshteinDistance(Optimal string alignment distance), and do some benchmark on them.  It seems like Damerau–LevenshteinDistance is 2x slower than LevenshteinDistance.Do you think it's an acceptable change?...
> Thinking about this a bit more, I'm reluctant to replace the current implementation with something twice as slow with vague real-world advantages. I think a better approach would be...
> I believe it's a bug. Indeed you'll also need `std::ios::in` in addition to `std::ios::binary | std::ios::trunc | std::ios::out` to open the file. I've proposed a PR to fix it....
Hi,LuXugang. I have roughly read that paper. And I think it has a lot of interesting optimizations for lucene. I' m really interested about **the reverse binary search algorithm for...
> > Could you tell me which lucene's files should I read, so I could implement that algorithm? > > Hi, @tang-hi . I think you could first read `IndexSortSortedNumericDocValuesRangeQuery`,...
> Not a GDB bug...but GDB does get a little confused in this case since `rosetta` is involved. > > I was able to get it working inside a container...
> > > Not a GDB bug...but GDB does get a little confused in this case since `rosetta` is involved. > > > I was able to get it working...
Put the code below in `cachelib/navy/common/Types.h`. It works for me. ```C++ inline auto format_as(Status status) { return fmt::underlying(status); } ```
I will try to raise a PR to merge it into the repo later
Hope this helps! https://github.com/microsoft/vscode-cpptools/issues/10788#issuecomment-1954363023