tang donghai

Results 11 comments of tang donghai

I have implemented the Damerau–LevenshteinDistance(Optimal string alignment distance), and do some benchmark on them. ![1656688418264](https://user-images.githubusercontent.com/72755185/176921909-dcf1031c-f5ac-4904-9ca5-53de190265ab.jpg) 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); } ```

Hope this helps! https://github.com/microsoft/vscode-cpptools/issues/10788#issuecomment-1954363023