{"action":"opened","issue":{"url":"https://api.github.com/repos/Cyan4973/zstd/issues/89","labels_url":"https://api.github.com/repos/Cyan4973/zstd/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/Cyan4973/zstd/issues/89/comments","events_url":"https://api.github.com/repos/Cyan4973/zstd/issues/89/events","html_url":"https://github.com/Cyan4973/zstd/issues/89","id":120807737,"number":89,"title":"Standard names for compression levels","user":{"login":"KrzysFR","id":1662235,"avatar_url":"https://avatars.githubusercontent.com/u/1662235?v=3","gravatar_id":"","url":"https://api.github.com/users/KrzysFR","html_url":"https://github.com/KrzysFR","followers_url":"https://api.github.com/users/KrzysFR/followers","following_url":"https://api.github.com/users/KrzysFR/following{/other_user}","gists_url":"https://api.github.com/users/KrzysFR/gists{/gist_id}","starred_url":"https://api.github.com/users/KrzysFR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrzysFR/subscriptions","organizations_url":"https://api.github.com/users/KrzysFR/orgs","repos_url":"https://api.github.com/users/KrzysFR/repos","events_url":"https://api.github.com/users/KrzysFR/events{/privacy}","received_events_url":"https://api.github.com/users/KrzysFR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T16:11:24Z","updated_at":"2015-12-07T16:11:24Z","closed_at":null,"body":"I'm currently updating my wrapper for the new API introduced in 4.x, and I'm merging all the methods with and without compression levels into a single set of methods.\r\n\r\nAsking the caller to pass an untyped integer value for the compression level seems a bit dangerous: most people will probably remember zlib, and expect a 1 - 9 scale with default at 5. That's why I would like to have an enum with well know names, and a clear default \"if you don't know better use that one\" level.\r\n\r\nQuick questions:\r\n- Is the default level still intended to be level 1? or is the whole zstd vs zstd_hc a thing of the past?\r\n- What about level 0? The comment in zstd_static.h says that level 0 is \"never used\", but quick tests show that using compression level 0 works fine (and compress about the same as level 1)\r\n- Are there plans to have standardized names for some compression levels, like \"fast\", \"high\", \"ultra\" and so on? And if yes, what would be the values?\r\n- Right now max level is 20 but it seems that it can change. If yes, do you plan to have some way to, at runtime, probe for the range of supported compression levels?\r\n\r\n"}}