{"id":18446145,"url":"https://github.com/tensorush/zig-sieve","last_synced_at":"2025-04-08T00:31:45.127Z","repository":{"id":280641783,"uuid":"746256430","full_name":"tensorush/zig-sieve","owner":"tensorush","description":"Zig implementation of SIEVE cache eviction algorithm.","archived":false,"fork":false,"pushed_at":"2025-03-04T13:56:21.000Z","size":18,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T03:08:22.695Z","etag":null,"topics":["sieve-cache","zig-package"],"latest_commit_sha":null,"homepage":"https://tensorush.github.io/zig-sieve/","language":"Zig","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/tensorush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-01-21T14:38:57.000Z","updated_at":"2025-03-18T06:56:57.000Z","dependencies_parsed_at":"2025-03-04T14:36:21.371Z","dependency_job_id":"00c7f335-b8c0-4cf7-9219-3786a66edfb0","html_url":"https://github.com/tensorush/zig-sieve","commit_stats":null,"previous_names":["tensorush/zig-sieve"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorush%2Fzig-sieve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorush%2Fzig-sieve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorush%2Fzig-sieve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensorush%2Fzig-sieve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tensorush","download_url":"https://codeload.github.com/tensorush/zig-sieve/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755353,"owners_count":20990616,"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":["sieve-cache","zig-package"],"created_at":"2024-11-06T07:08:31.066Z","updated_at":"2025-04-08T00:31:45.121Z","avatar_url":"https://github.com/tensorush.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-sieve\n\n## Zig implementation of [SIEVE cache eviction algorithm](https://cachemon.github.io/SIEVE-website/).\n\n### Usage\n\n- Add `sieve` dependency to `build.zig.zon`.\n\n```sh\nzig fetch --save git+https://github.com/tensorush/zig-sieve\n```\n\n- Use `sieve` dependency in `build.zig`.\n\n```zig\nconst sieve_dep = b.dependency(\"sieve\", .{\n    .target = target,\n    .optimize = optimize,\n});\nconst sieve_mod = sieve_dep.module(\"sieve\");\n\u003ccompile\u003e.root_module.addImport(\"sieve\", sieve_mod);\n```\n\n### Benchmarks (MacBook M1 Pro)\n\n- Sequence: the time to cache and retrieve integer values.\n\n    ```sh\n    $ zig build bench -- -s\n    Sequence: 23.042us\n    ```\n\n- Composite: the time to cache and retrieve composite values.\n\n    ```sh\n    $ zig build bench -- -c\n    Composite: 33.417us\n    ```\n\n- Composite (normal): the time to cache and retrieve normally-distributed composite values.\n\n    ```sh\n    $ zig build bench -- -n\n    Composite Normal: 99.708us\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorush%2Fzig-sieve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensorush%2Fzig-sieve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensorush%2Fzig-sieve/lists"}