{"id":19715136,"url":"https://github.com/emeraldacoustics/fast-io","last_synced_at":"2025-04-29T20:30:35.444Z","repository":{"id":235022395,"uuid":"789924377","full_name":"emeraldacoustics/fast-io","owner":"emeraldacoustics","description":"10X Fast I/O Library for C++","archived":false,"fork":false,"pushed_at":"2024-05-27T15:06:46.000Z","size":11,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:54:06.213Z","etag":null,"topics":["compatibility","competitive-programming","cpp","cpp-all","cpp-library","cpp-programming","easy-to-use","input-output","integration","optimizer","speedup"],"latest_commit_sha":null,"homepage":"","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/emeraldacoustics.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}},"created_at":"2024-04-21T23:08:01.000Z","updated_at":"2025-04-01T01:35:14.000Z","dependencies_parsed_at":"2024-04-22T02:54:56.090Z","dependency_job_id":null,"html_url":"https://github.com/emeraldacoustics/fast-io","commit_stats":null,"previous_names":["alexmcmahonsoftware/fast-io","emeraldacoustics/fast-io"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeraldacoustics%2Ffast-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeraldacoustics%2Ffast-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeraldacoustics%2Ffast-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emeraldacoustics%2Ffast-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emeraldacoustics","download_url":"https://codeload.github.com/emeraldacoustics/fast-io/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578234,"owners_count":21611997,"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":["compatibility","competitive-programming","cpp","cpp-all","cpp-library","cpp-programming","easy-to-use","input-output","integration","optimizer","speedup"],"created_at":"2024-11-11T22:37:21.103Z","updated_at":"2025-04-29T20:30:35.146Z","avatar_url":"https://github.com/emeraldacoustics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast I/O Library for C++\nThis library provides a highly optimized alternative to the standard I/O operations (`cin`, `cout`, `scanf()`, `printf()`) in C++. By significantly reducing the overhead associated with these operations, `fistream` and `fostream` classes can perform input and output operations up to 10 times faster, making it particularly useful for performance-critical applications such as competitive programming, large data processing, and more.\n\n## Features\n- Enhanced Performance: Achieve faster I/O by minimizing internal operation overhead.\n- Ease of Use: Implements standard C++ stream operators, making it easy to integrate and replace existing code with minimal changes.\n- Extended Compatibility: Supports all fundamental data types and offers precision control for floating-point numbers.\n\n## Usage\n`#include \"fiostream_x86/64.h\"` in your C++ project and replace `cin` and `cout`, with `fin` and `fout`.\n```cpp\n#include \"fiostream_x86.h\"\n\nint main()\n{\n    int a, b;\n    fin \u003e\u003e a \u003e\u003e b; // Reading integers using fistream\n    fout \u003c\u003c \"Sum is: \" \u003c\u003c (a + b) \u003c\u003c fendl; // Writing output using fostream\n    return 0;\n}\n```\n\n### Input\n```cpp\nint x;\ndouble y;\nfin \u003e\u003e x \u003e\u003e y; // Read an integer and a double\n```\n\n### Output\n```cpp\nint num = 42;\nfout \u003c\u003c \"Number: \" \u003c\u003c num \u003c\u003c fendl;\n\nlong double pi = acosl(-1);\nfout \u003c\u003c \"Pi: \" \u003c\u003c fsetprecision(20) \u003c\u003c pi \u003c\u003c fendl;\n```\n\n## Caution\nDon't use `fin` and `fout` inconsistently with `cin`, `cout`, `scanf()` or `printf()` because it can be a cause of potential errors.\n\n## Contributing\nContributions to improve this library are welcome. Please send pull requests or open an issue if you find bugs or have suggestions.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femeraldacoustics%2Ffast-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femeraldacoustics%2Ffast-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femeraldacoustics%2Ffast-io/lists"}