{"id":22415852,"url":"https://github.com/xmas7/bytecount","last_synced_at":"2025-03-27T04:18:50.947Z","repository":{"id":143166916,"uuid":"533098875","full_name":"xmas7/bytecount","owner":"xmas7","description":"This uses the \"hyperscreamingcount\" algorithm by Joshua Landau to count bytes faster than anything else. The newlinebench repository has further benchmarks.","archived":false,"fork":false,"pushed_at":"2022-09-06T00:08:11.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T09:28:04.709Z","etag":null,"topics":["algorithm","bytecount","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xmas7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.Apache2","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":"2022-09-06T00:07:07.000Z","updated_at":"2024-05-20T11:09:14.000Z","dependencies_parsed_at":"2023-04-30T02:31:57.364Z","dependency_job_id":null,"html_url":"https://github.com/xmas7/bytecount","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/xmas7%2Fbytecount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fbytecount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fbytecount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmas7%2Fbytecount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmas7","download_url":"https://codeload.github.com/xmas7/bytecount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245779486,"owners_count":20670688,"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":["algorithm","bytecount","rust"],"created_at":"2024-12-05T15:13:53.481Z","updated_at":"2025-03-27T04:18:50.941Z","avatar_url":"https://github.com/xmas7.png","language":"Rust","readme":"# bytecount\n\nCounting bytes really fast\n\n[![Build Status](https://travis-ci.org/llogiq/bytecount.svg?branch=master)](https://travis-ci.org/llogiq/bytecount)\n[![Current Version](http://meritbadge.herokuapp.com/bytecount)](https://crates.io/crates/bytecount)\n[![License: Apache 2.0/MIT](https://img.shields.io/crates/l/bytecount.svg)](#License)\n\nThis uses the \"hyperscreamingcount\" algorithm by Joshua Landau to count bytes\nfaster than anything else. The [newlinebench](/llogiq/newlinebench) repository\nhas further benchmarks.\n\nTo use bytecount in your crate, if you have\n[cargo-edit](/killercup/cargo-edit), just type `cargo add bytecount` in a\nterminal with the crate root as the current path. Otherwise you can manually\nedit your `Cargo.toml` to add `bytecount = 0.0.1` to your `[dependencies]`\nsection.\n\nIn your crate root (`lib.rs` or `main.rs`, depending on if you are writing a\nlibrary or application), add `extern crate bytecount;`. Now you can simply use\n`bytecount::count` as follows:\n\n```Rust\nextern crate bytecount;\n\nfn main() {\n    let mytext = \"some potentially large text, perhaps read from disk?\";\n    let spaces = bytecount::count(mytext.as_bytes(), b' ');\n    ..\n}\n```\n\nThe algorithm is explained in depth\n[here](https://llogiq.github.io/2016/09/27/count.html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmas7%2Fbytecount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmas7%2Fbytecount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmas7%2Fbytecount/lists"}