Skip Menu |

This queue is for tickets about the Text-Levenshtein-Flexible CPAN distribution.

Report information
The Basics
Id: 96087
Status: resolved
Priority: 0/
Queue: Text-Levenshtein-Flexible

People
Owner: MBETHKE [...] cpan.org
Requestors: UGEXE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ActivePerl requires C89 code to pass tests
http://code.activestate.com/ppm/Text-Levenshtein-Flexible/ Activestate's test server use Visual C for their compiler, which uses ancient C89. The code in the 3 modules below also suffered from this problem when they were coded more elegantly, but were afterwards reworked to conform to C89. If you need any hints you can examine their code, but be aware that Text::Levenshtein::(Damerau::)?XS uses some optimized and quirky code like overriding perl's memory management (hence no use of Safefree). Text::Fuzzy even handles its objection orientation in C (no pure perl functions in Text::Fuzzy) if you want to learn how to speed your module up further. http://code.activestate.com/ppm/Text-Levenshtein-XS/ http://code.activestate.com/ppm/Text-Levenshtein-Damerau-XS/ http://code.activestate.com/ppm/Text-Fuzzy/
On Fri May 30 17:13:04 2014, UGEXE wrote: Show quoted text
> Activestate's test server use Visual C for their compiler, which uses > ancient C89. The code in the 3 modules below also suffered from this > problem when they were coded more elegantly, but were afterwards > reworked to conform to C89.
m( Well, thanks for the hint! It wasn't hard to make the code compatible, it's just a tad slower on MSVC for lack of "inline". I suppose it exists there as well but someone would have to add it ...