{"id":18019921,"url":"https://github.com/bryceco/fastcodable","last_synced_at":"2025-08-03T18:33:53.796Z","repository":{"id":239998078,"uuid":"625394493","full_name":"bryceco/FastCodable","owner":"bryceco","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-16T00:53:25.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T00:41:31.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/bryceco.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":"2023-04-09T01:12:48.000Z","updated_at":"2024-05-16T00:53:28.000Z","dependencies_parsed_at":"2024-05-16T07:46:51.147Z","dependency_job_id":null,"html_url":"https://github.com/bryceco/FastCodable","commit_stats":null,"previous_names":["bryceco/fastcodable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryceco%2FFastCodable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryceco%2FFastCodable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryceco%2FFastCodable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryceco%2FFastCodable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryceco","download_url":"https://codeload.github.com/bryceco/FastCodable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"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":[],"created_at":"2024-10-30T05:13:04.396Z","updated_at":"2025-04-04T17:11:55.307Z","avatar_url":"https://github.com/bryceco.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastCodable\n\nA fast encoding/decoding library for Swift.\n* Minimal, extensible implementation of binary object serialization.\n* Not a drop-in replacement for Codable. You must add your own conformance to the protocol.\n* Does not support endianness, so not suitable for transfering data between different architectures.\n* Supports most standard types: Int, Double, String, Array, Dictionary, Optional\n* Around 10x faster (in Release builds) than keyed coding solutions like JSONEncoder, PropertyListEncoder, etc.\n\n```\nstruct Test: FastCodable {\n\tvar a: Int\n\tvar b: String?\n\tvar c: [Double]\n\n\tinit(fromFast decoder: FastDecoder) throws {\n\t\ta = try decoder.decode()\n\t\tb = try decoder.decode()\n\t\tc = try decoder.decode()\n\t}\n\n\tfunc fastEncode(to encoder: FastEncoder) {\n\t\ta.fastEncode(to: encoder)\n\t\tb.fastEncode(to: encoder)\n\t\tc.fastEncode(to: encoder)\n\t}\n}\n\nvar test: Test()\nlet buffer: Data = FastEncoder.encode(input)\nlet output = try FastDecoder.decode(Test.self, data: buffer)\nassert(test == output)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryceco%2Ffastcodable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryceco%2Ffastcodable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryceco%2Ffastcodable/lists"}