{"action":"created","issue":{"url":"https://api.github.com/repos/gsliepen/tinc/issues/78","labels_url":"https://api.github.com/repos/gsliepen/tinc/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/gsliepen/tinc/issues/78/comments","events_url":"https://api.github.com/repos/gsliepen/tinc/issues/78/events","html_url":"https://github.com/gsliepen/tinc/pull/78","id":74945343,"number":78,"title":"Add LZ4 block compression support.","user":{"login":"dajhorn","id":494022,"avatar_url":"https://avatars.githubusercontent.com/u/494022?v=3","gravatar_id":"","url":"https://api.github.com/users/dajhorn","html_url":"https://github.com/dajhorn","followers_url":"https://api.github.com/users/dajhorn/followers","following_url":"https://api.github.com/users/dajhorn/following{/other_user}","gists_url":"https://api.github.com/users/dajhorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dajhorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajhorn/subscriptions","organizations_url":"https://api.github.com/users/dajhorn/orgs","repos_url":"https://api.github.com/users/dajhorn/repos","events_url":"https://api.github.com/users/dajhorn/events{/privacy}","received_events_url":"https://api.github.com/users/dajhorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-10T15:51:13Z","updated_at":"2015-05-11T21:47:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gsliepen/tinc/pulls/78","html_url":"https://github.com/gsliepen/tinc/pull/78","diff_url":"https://github.com/gsliepen/tinc/pull/78.diff","patch_url":"https://github.com/gsliepen/tinc/pull/78.patch"},"body":"Compared to the LZO codec, LZ4 trades a slightly larger output image\r\nfor substantially greater throughput.\r\n\r\nThis feature is implemented by:\r\n\r\n  * Autoconf checks for liblz4, which is BSD licensed.\r\n  * Refactoring and extending the net_packet routines.\r\n  * A new \"Compression 12\" configuration option for fast LZ4.\r\n  * A new \"Compression 13\" configuration option for best LZ4.\r\n  * Documentation updates."},"comment":{"url":"https://api.github.com/repos/gsliepen/tinc/issues/comments/101058581","html_url":"https://github.com/gsliepen/tinc/pull/78#issuecomment-101058581","issue_url":"https://api.github.com/repos/gsliepen/tinc/issues/78","id":101058581,"user":{"login":"dajhorn","id":494022,"avatar_url":"https://avatars.githubusercontent.com/u/494022?v=3","gravatar_id":"","url":"https://api.github.com/users/dajhorn","html_url":"https://github.com/dajhorn","followers_url":"https://api.github.com/users/dajhorn/followers","following_url":"https://api.github.com/users/dajhorn/following{/other_user}","gists_url":"https://api.github.com/users/dajhorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dajhorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajhorn/subscriptions","organizations_url":"https://api.github.com/users/dajhorn/orgs","repos_url":"https://api.github.com/users/dajhorn/repos","events_url":"https://api.github.com/users/dajhorn/events{/privacy}","received_events_url":"https://api.github.com/users/dajhorn/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T21:47:29Z","updated_at":"2015-05-11T21:47:29Z","body":"Library version and interface seem to matter for this benchmark.  The latest LZ4 method is 50% faster for small packets and 75% faster for large packets than LZO on the Large Calgary Corpus.\r\n\r\n```\r\n$ ./compression_speed 1451 <LargeCalgaryCorpus.cat\r\nReading input from stdin... 3251493 bytes\r\nPacket size: 1451\r\nzlib1:        3.79 MB/s, ratio 0.48\r\nzlib2:        3.88 MB/s, ratio 0.48\r\nzlib3:        3.73 MB/s, ratio 0.48\r\nzlib4:        3.45 MB/s, ratio 0.47\r\nzlib5:        3.14 MB/s, ratio 0.47\r\nzlib6:        3.37 MB/s, ratio 0.47\r\nzlib7:        3.25 MB/s, ratio 0.47\r\nzlib8:        3.06 MB/s, ratio 0.47\r\nzlib9:        3.13 MB/s, ratio 0.47\r\nlzo1x_1:     43.52 MB/s, ratio 0.69\r\nlzo1x_999:    2.70 MB/s, ratio 0.58\r\nlz4_lo:      48.11 MB/s, ratio 0.70\r\nlz4_hc:      10.74 MB/s, ratio 0.67\r\nlz4_ext:     65.62 MB/s, ratio 0.70\r\nlz4_acc:     65.40 MB/s, ratio 0.70\r\n```\r\n```\r\n$ ./compression_speed 8951 <LargeCalgaryCorpus.cat\r\nReading input from stdin... 3251493 bytes\r\nPacket size: 8951\r\nzlib1:        8.03 MB/s, ratio 0.42\r\nzlib2:        7.03 MB/s, ratio 0.41\r\nzlib3:        7.56 MB/s, ratio 0.40\r\nzlib4:        5.68 MB/s, ratio 0.39\r\nzlib5:        5.22 MB/s, ratio 0.39\r\nzlib6:        5.53 MB/s, ratio 0.39\r\nzlib7:        5.33 MB/s, ratio 0.39\r\nzlib8:        4.81 MB/s, ratio 0.39\r\nzlib9:        3.80 MB/s, ratio 0.38\r\nlzo1x_1:     37.53 MB/s, ratio 0.56\r\nlzo1x_999:    2.30 MB/s, ratio 0.45\r\nlz4_lo:      65.40 MB/s, ratio 0.59\r\nlz4_hc:      12.90 MB/s, ratio 0.53\r\nlz4_ext:     47.13 MB/s, ratio 0.59\r\nlz4_acc:     65.58 MB/s, ratio 0.59\r\n```"}}