{"id":16515233,"url":"https://github.com/pine/p5-text-diff-unified-xs","last_synced_at":"2025-10-28T04:32:45.262Z","repository":{"id":56836537,"uuid":"76935751","full_name":"pine/p5-Text-Diff-Unified-XS","owner":"pine","description":":dash: The fast Text::Diff module implemented by XS","archived":false,"fork":false,"pushed_at":"2019-05-29T09:25:50.000Z","size":86,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-15T15:34:33.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Text::Diff::Unified::XS","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pine.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-20T07:55:50.000Z","updated_at":"2021-09-16T13:43:05.000Z","dependencies_parsed_at":"2022-09-20T22:44:29.570Z","dependency_job_id":null,"html_url":"https://github.com/pine/p5-Text-Diff-Unified-XS","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Text-Diff-Unified-XS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Text-Diff-Unified-XS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Text-Diff-Unified-XS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pine%2Fp5-Text-Diff-Unified-XS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pine","download_url":"https://codeload.github.com/pine/p5-Text-Diff-Unified-XS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238597388,"owners_count":19498396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:16:15.864Z","updated_at":"2025-10-28T04:32:44.980Z","avatar_url":"https://github.com/pine.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/pine/p5-Text-Diff-Unified-XS.svg?branch=master)](https://travis-ci.org/pine/p5-Text-Diff-Unified-XS)\n# NAME\n\nText::Diff::Unified::XS - The fast Text::Diff module\n\n# SYNOPSIS\n\n```perl\nuse Text::Diff::Unified::XS;\n\nmy $diff = diff 'file1.txt', 'file2.txt';\nmy $diff = diff \\$string1, \\$string2;\n```\n\n# DESCRIPTION\n\nText::Diff::Unified::XS is the fast [Text::Diff](https://metacpan.org/pod/Text::Diff) module implemented by XS.\n\n# METHODS\n\nPlease be careful that, the module supports only unified format.\n\n```\n@@ -2,13 +2,13 @@\n 2\n 3\n 4\n-5d\n+5a\n 6\n 7\n 8\n 9\n+9a\n 10\n 11\n-11d\n 12\n 13\n```\n\n## `diff($file_a, $file_b)`\n\nGenerate the difference between `$file_a` and `$file_b` in unified format.\n\n## `diff(\\$string_a, \\$string_b)`\n\nGenerate the difference between `\\$string_a` and `\\$string_b` in unified format.\n\n# BENCHMARK\n\nText::Diff::Unified::XS is about 500 % faster than Text::Diff.\n\n```\nBenchmark: running PP, XS for at least 10 CPU seconds...\n        PP: 10 wallclock secs (10.73 usr +  0.05 sys = 10.78 CPU) @ 63.73/s (n=687)\n        XS: 10 wallclock secs ( 8.90 usr +  1.11 sys = 10.01 CPU) @ 409.29/s (n=4097)\n     Rate   PP   XS\nPP 63.7/s   -- -84%\nXS  409/s 542%   --\n```\n\n# LICENSE\n\n(The MIT license)\n\nCopyright (c) 2016-2019 Pine Mizune\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n# AUTHOR\n\nPine Mizune \u003cpinemz@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-text-diff-unified-xs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpine%2Fp5-text-diff-unified-xs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpine%2Fp5-text-diff-unified-xs/lists"}