www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13834] New: make levenshteinDistance nogc


          Issue ID: 13834
           Summary: make levenshteinDistance  nogc
           Product: D
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

It currently allocates a matrix for the computation.
That could be easily done with a temporary buffer (using the stack up to a
certain threshold, then falling back to malloc).

The levenshteinDistancePath function should take an output range for the edit

Dec 08 2014