{"id":13761255,"url":"https://github.com/romgrk/fzy-lua-native","last_synced_at":"2025-04-05T08:05:29.332Z","repository":{"id":40778330,"uuid":"309561014","full_name":"romgrk/fzy-lua-native","owner":"romgrk","description":"Luajit FFI bindings to FZY","archived":false,"fork":false,"pushed_at":"2024-10-21T23:03:11.000Z","size":269,"stargazers_count":116,"open_issues_count":5,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-22T19:37:13.971Z","etag":null,"topics":["ffi","fzy","lua","luajit"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romgrk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-03T03:26:05.000Z","updated_at":"2024-10-21T23:03:15.000Z","dependencies_parsed_at":"2024-01-15T03:59:07.221Z","dependency_job_id":"0ce9edad-420e-4fb2-9e3a-7b97a87cf0cb","html_url":"https://github.com/romgrk/fzy-lua-native","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romgrk%2Ffzy-lua-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romgrk%2Ffzy-lua-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romgrk%2Ffzy-lua-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romgrk%2Ffzy-lua-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romgrk","download_url":"https://codeload.github.com/romgrk/fzy-lua-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305933,"owners_count":20917208,"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":["ffi","fzy","lua","luajit"],"created_at":"2024-08-03T13:01:45.912Z","updated_at":"2025-04-05T08:05:29.301Z","avatar_url":"https://github.com/romgrk.png","language":"Lua","readme":"\n# fzy-lua-native\n\nLuajit FFI bindings to FZY.\n\n### Building\n\n`make`\n\n### Running\n\n`luajit benchmark.lua`\n\nResults:\n```\nLines: 100000\n\nNative:\n -\u003e Total: 34130\n -\u003e Time:  69.418 ms\nOriginal:\n -\u003e Total: 34130\n -\u003e Time:  835.683 ms\n```\n\n### Notes\n\nThe C version of fzy in that repo contains 2 differences with the original:\n\n - the functions take a `is_case_sensitive` additional parameters that does\n   what you think. It's a parameter rather than computed in the function\n   because for our use-case, you want to compute `is_case_sensitive` once\n   for needle, instead of on each iteration of the loop.\n - `match_positions` uses `uint32_t` for positions, because `size_t`\n   (`uint64_t`) doesn't map well to lua types.\n\n### Usage\n\nThe fzy algorithm *requires* that you call `fzy.has_match(string, needle)` to\nprefilter all your matches. Only after that is done you can call the other functions\nsuch as `fzy.positions(string, needle)`.\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromgrk%2Ffzy-lua-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromgrk%2Ffzy-lua-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromgrk%2Ffzy-lua-native/lists"}