{"id":26315477,"url":"https://github.com/lunamultiplayer/cachedquicklz","last_synced_at":"2025-03-15T12:18:50.573Z","repository":{"id":75058232,"uuid":"150912465","full_name":"LunaMultiplayer/CachedQuickLz","owner":"LunaMultiplayer","description":"Compress and decompress with QuickLz while keeping low the Garbage Collector","archived":false,"fork":false,"pushed_at":"2019-10-18T09:39:37.000Z","size":70,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-05T12:46:28.158Z","etag":null,"topics":["allocate","allocation","cache","cached","collector","compress","compressor","decompress","decompressor","garbage","garbage-collection","garbage-collector","gc","pool","pooled","quicklz"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LunaMultiplayer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"custom":"https://paypal.me/gavazquez"}},"created_at":"2018-09-29T23:56:48.000Z","updated_at":"2022-05-30T16:14:15.000Z","dependencies_parsed_at":"2023-02-24T03:30:26.499Z","dependency_job_id":null,"html_url":"https://github.com/LunaMultiplayer/CachedQuickLz","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"cd9972ce320443db3ed09ad43da43fe94fab4e51"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaMultiplayer%2FCachedQuickLz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaMultiplayer%2FCachedQuickLz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaMultiplayer%2FCachedQuickLz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaMultiplayer%2FCachedQuickLz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LunaMultiplayer","download_url":"https://codeload.github.com/LunaMultiplayer/CachedQuickLz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725860,"owners_count":20337707,"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":["allocate","allocation","cache","cached","collector","compress","compressor","decompress","decompressor","garbage","garbage-collection","garbage-collector","gc","pool","pooled","quicklz"],"created_at":"2025-03-15T12:18:49.960Z","updated_at":"2025-03-15T12:18:50.566Z","avatar_url":"https://github.com/LunaMultiplayer.png","language":"C#","funding_links":["https://paypal.me/gavazquez"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://paypal.me/gavazquez\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg?style=flat\u0026logo=paypal\" alt=\"PayPal\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://discord.gg/S6bQR5q\"\u003e\u003cimg src=\"https://img.shields.io/discord/378456662392045571.svg?style=flat\u0026logo=discord\u0026label=discord\" alt=\"Chat on discord\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.nuget.org/packages/CachedQuickLz\"\u003e\u003cimg src=\"https://img.shields.io/nuget/v/CachedQuickLz.svg?style=flat\u0026logo=nuget\u0026logoColor=white\" alt=\"Nuget\" /\u003e\u003c/a\u003e\n  \u003ca href=\"../../releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/lunamultiplayer/cachedquicklz.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"Latest release\" /\u003e\u003c/a\u003e\n  \u003ca href=\"../../releases\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/lunamultiplayer/cachedquicklz/total.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"Total downloads\" /\u003e\u003c/a\u003e\n  \u003ca href=\"../../\"\u003e\u003cimg src=\"https://img.shields.io/github/search/lunamultiplayer/cachedquicklz/goto.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"Total hits\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# Cached compression/decompression with [QuickLz](http://www.quicklz.com/)\n\n*Allows you to compress and decompress with [QuickLz](http://www.quicklz.com/) while keeping low the GC pressure*  \n\n### Main features:\n\n- Fast compression/decompression using [QuickLz](http://www.quicklz.com/) algorithm\n- Includes an array pool to request/recycle arrays in case you want to return them once you've compressed/decompressed their data\n\n### Usage:\n\n##### Compress:\n```CSharp\nvar length = 5000;\nvar data = new byte[length]\n//Fill up the \"data\" array...\nCachedQlz.Compress(ref data, ref length);\n//Now \"data\" is an array with the compressed bytes. If you want to check it's length use the variable \"length\"\n//Do NOT use data.Length! It might be bigger as it came from a cached array!\n```\n\n##### Decompress:\n```CSharp\n//\"data\" is an array with compressed bytes...\nCachedQlz.Decompress(ref data, out var decompressedLength);\n//Now \"data\" is an array with the decompressed bytes. If you want to check it's length use the variable \"length\"\n//Do NOT use data.Length! It might be bigger as it came from a cached array!\n```\n\n### Array pool usage:\n\n##### Request an array from the pool:\n```CSharp\nvar array = ArrayPool\u003cbyte\u003e.Spawn(4);\n//Caution, array.Length will 8 instead of 4 as the cache system uses values based on powers of two\n```\n\n##### Return an array to the pool:\n```CSharp\nArrayPool\u003cbyte\u003e.Recycle(array);\n```\n\n---\n\n### Status:\n\n|   Branch   |   Build  |   Tests  |\n| ---------- | -------- | -------- |\n| **master** |[![AppVeyor](https://img.shields.io/appveyor/ci/gavazquez/cachedquicklz/master.svg?logo=appveyor)](https://ci.appveyor.com/project/gavazquez/cachedquicklz/branch/master) | [![AppVeyor Tests](https://img.shields.io/appveyor/tests/gavazquez/cachedquicklz/master.svg?logo=appveyor)](https://ci.appveyor.com/project/gavazquez/cachedquicklz/branch/master/tests)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"mailto:gavazquez@gmail.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/email-gavazquez@gmail.com-blue.svg?style=flat\" alt=\"Email: gavazquez@gmail.com\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/lunamultiplayer/cachedquicklz.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunamultiplayer%2Fcachedquicklz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunamultiplayer%2Fcachedquicklz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunamultiplayer%2Fcachedquicklz/lists"}