{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/13"},{"label":"General","url":"https://skillfed.io/packages/category/text-processing-general"}],"enrichment":{"capability":"cdifflib provides a C-accelerated reimplementation of Python's difflib.SequenceMatcher for faster sequence comparison on lists, offering roughly 4x speedup over the pure Python version.","skillfed_tags":["performance-optimization","c-extension"],"use_cases":["Accelerating diff operations in large-scale text processing pipelines where sequence matching is a bottleneck.","Speeding up test frameworks or code review tools that compare file contents or code snippets.","Replacing difflib globally in an application to transparently accelerate any library that depends on difflib.","Comparing large lists of structured data (records, tokens, etc.) where Python's difflib would be too slow."],"what_it_does":"cdifflib is a C-language reimplementation of core parts of Python's standard difflib module, specifically the SequenceMatcher class. It trades the flexibility of generic iterables for raw speed: it only accepts lists as input, but performs sequence matching roughly 4x faster than the pure Python version when processing large data. The API is fully compatible with difflib.SequenceMatcher, so you can drop it in as a replacement\u2014even monkey-patch it into difflib itself to accelerate other libraries that use difflib transparently.\n\nThe package has no runtime dependencies and compiles to platform-specific wheels. It is marked Production/Stable and supports Python 3.4 and later, though the project is dormant (last release 578 days ago). The main gotcha is that it requires list inputs; anything else gets converted to a list in the constructor, which can be surprising if you pass generators or other iterables expecting lazy evaluation.","worth_installing":"Yes, if you have a performance-critical diffing workload on lists and are willing to accept medium install friction (compiled extension). The package is stable, permissively licensed, has no dependencies, and offers a straightforward 4x speedup. Dormant maintenance is a minor concern but not a blocker\u2014the code is mature and the repo remains reachable. Install only if you've profiled and confirmed difflib is actually your bottleneck."},"id":"cdifflib","links":{"html":"https://skillfed.io/packages/cdifflib","md":"https://skillfed.io/packages/cdifflib.md","pypi":"https://pypi.org/project/cdifflib/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-13","license_spdx":null,"license_treatment":"permissive","name":"cdifflib","python_support":"supports_current","summary":"C implementation of parts of difflib"},"popularity":{"monthly_downloads":233173,"position":9042,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.9"}
