{"id":15399037,"url":"https://github.com/spriteovo/flexible-string","last_synced_at":"2025-06-29T14:32:21.842Z","repository":{"id":57630346,"uuid":"449546801","full_name":"SpriteOvO/flexible-string","owner":"SpriteOvO","description":"Stack heap flexible string designed to improve performance for Rust","archived":false,"fork":false,"pushed_at":"2022-01-19T05:15:50.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T08:55:59.815Z","etag":null,"topics":["crate","heap","library","performance","rust","stack","string"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/flexible-string","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/SpriteOvO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-19T04:30:03.000Z","updated_at":"2025-05-14T14:45:56.000Z","dependencies_parsed_at":"2022-08-27T20:02:21.113Z","dependency_job_id":null,"html_url":"https://github.com/SpriteOvO/flexible-string","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SpriteOvO/flexible-string","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpriteOvO%2Fflexible-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpriteOvO%2Fflexible-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpriteOvO%2Fflexible-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpriteOvO%2Fflexible-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpriteOvO","download_url":"https://codeload.github.com/SpriteOvO/flexible-string/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpriteOvO%2Fflexible-string/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262609003,"owners_count":23336608,"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":["crate","heap","library","performance","rust","stack","string"],"created_at":"2024-10-01T15:46:41.213Z","updated_at":"2025-06-29T14:32:21.815Z","avatar_url":"https://github.com/SpriteOvO.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flexible-string\n\n[![](https://img.shields.io/crates/v/flexible-string?style=flat-square)](https://crates.io/crates/flexible-string)\n[![](https://img.shields.io/github/workflow/status/SpriteOvO/flexible-string/CI?style=flat-square)](https://github.com/SpriteOvO/flexible-string/actions/workflows/ci.yml)\n[![](https://img.shields.io/docsrs/flexible-string?style=flat-square)](https://docs.rs/flexible-string)\n[![](https://img.shields.io/crates/l/flexible-string?style=flat-square)](https://github.com/SpriteOvO/flexible-string#license)\n \nA stack heap flexible string designed to improve performance.\n\n`FlexibleString` was first implemented in [spdlog-rs] crate, which improved performance for [spdlog-rs] by about double (see [benchmarks of spdlog-rs]). Now it is extracted to a separate crate for use by other crates.\n\nFor more details, please read the crate [documentation].\n\n## Examples\n\nYou can use `FlexibleString` almost as well as standard `String`.\n\n```rust\nuse flexible_string::FlexibleString;\n\nlet mut string = FlexibleString::\u003c250\u003e::from(\"hello\");\nstring.push(',');\nstring.push_str(\"world\");\nassert_eq!(string, \"hello,world\");\n```\n\n## Benchmarks\n\nRun `cargo +nightly bench` in the root directory of this repository for benchmarking.\n\nThe following results are generated with `Windows 10 64 bit` and `Intel i9-10900KF CPU @ 3.70GHz`.\n\n - `FlexibleString`\n\n   ```\n   test bench_clone    ... bench:           7 ns/iter (+/- 0)\n   test bench_from_str ... bench:           6 ns/iter (+/- 0)\n   test bench_push     ... bench:           0 ns/iter (+/- 0)\n   test bench_push_str ... bench:           0 ns/iter (+/- 0)\n   ```\n\n - `std::string::String`\n\n   ```\n   test bench_clone    ... bench:          46 ns/iter (+/- 0)\n   test bench_from_str ... bench:          40 ns/iter (+/- 0)\n   test bench_push     ... bench:          41 ns/iter (+/- 0)\n   test bench_push_str ... bench:          39 ns/iter (+/- 0)\n   ```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](/LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](/LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n[spdlog-rs]: https://crates.io/crates/spdlog-rs\n[benchmarks of spdlog-rs]: https://github.com/SpriteOvO/spdlog-rs#benchmarks\n[documentation]: https://docs.rs/flexible-string\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspriteovo%2Fflexible-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspriteovo%2Fflexible-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspriteovo%2Fflexible-string/lists"}