{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":656604603,"defaultBranch":"main","name":"slim","ownerLogin":"levups","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-06-21T09:19:55.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/991240?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1687423297.0","currentOid":""},"activityList":{"items":[{"before":"1c18022a78f31be209e6a42d151c4ef602e8fca1","after":null,"ref":"refs/heads/lint-with-standardrb","pushedAt":"2023-06-22T08:41:37.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"}},{"before":"8fe42084cb1756158577440bac7c14ea3ad32482","after":null,"ref":"refs/heads/apply-standardrb-fixes","pushedAt":"2023-06-22T08:41:11.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"}},{"before":null,"after":"8fe42084cb1756158577440bac7c14ea3ad32482","ref":"refs/heads/apply-standardrb-fixes","pushedAt":"2023-06-21T15:09:38.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Apply standard fixes to the whole codebase","shortMessageHtmlLink":"Apply standard fixes to the whole codebase"}},{"before":null,"after":"1c18022a78f31be209e6a42d151c4ef602e8fca1","ref":"refs/heads/lint-with-standardrb","pushedAt":"2023-06-21T15:06:30.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Add standard gem for linting","shortMessageHtmlLink":"Add standard gem for linting"}},{"before":"a1df77927d5a9a376d3fe53670efc0d5dede14d1","after":"cc03a8808be537b97b972d991876a58b37c9272d","ref":"refs/heads/main","pushedAt":"2023-06-21T14:58:20.032Z","pushType":"push","commitsCount":2,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Unify code style (#923)\n\nIn order to make the project more consistent and more agreable to maintain,\r\nwelcoming to new contributors, I applied the dominant code style to places where\r\nit was different.","shortMessageHtmlLink":"Unify code style (slim-template#923)"}},{"before":"a1df77927d5a9a376d3fe53670efc0d5dede14d1","after":"cc03a8808be537b97b972d991876a58b37c9272d","ref":"refs/heads/main","pushedAt":"2023-06-21T14:58:20.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Unify code style (#923)\n\nIn order to make the project more consistent and more agreable to maintain,\r\nwelcoming to new contributors, I applied the dominant code style to places where\r\nit was different.","shortMessageHtmlLink":"Unify code style (slim-template#923)"}},{"before":"684bf49c57253e5299c84f36a53c0ec6d8f0d5c8","after":null,"ref":"refs/heads/reduce-object-allocations-on-sort-by","pushedAt":"2023-06-21T13:45:27.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"}},{"before":"72abb0445528cba12a6076ab03cc911f3204efd2","after":null,"ref":"refs/heads/unify-code-style","pushedAt":"2023-06-21T13:28:50.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"}},{"before":"584d7371d4a78a0a95d18e87860da8ddea7afb30","after":"684bf49c57253e5299c84f36a53c0ec6d8f0d5c8","ref":"refs/heads/reduce-object-allocations-on-sort-by","pushedAt":"2023-06-21T13:27:08.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Merge branch 'main' into reduce-object-allocations-on-sort-by","shortMessageHtmlLink":"Merge branch 'main' into reduce-object-allocations-on-sort-by"}},{"before":null,"after":"584d7371d4a78a0a95d18e87860da8ddea7afb30","ref":"refs/heads/reduce-object-allocations-on-sort-by","pushedAt":"2023-06-21T10:22:32.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Reduce object allocations by using sort_by! where it is safe","shortMessageHtmlLink":"Reduce object allocations by using sort_by! where it is safe"}},{"before":"f21582949dcd1d20e2313a4240fd851cf07193ad","after":"72abb0445528cba12a6076ab03cc911f3204efd2","ref":"refs/heads/unify-code-style","pushedAt":"2023-06-21T10:16:17.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Unify code style\n\nIn order to make the project more consistent and more agreable to maintain,\nwelcoming to new contributors, I applied the dominant code style to places where\nit was different.","shortMessageHtmlLink":"Unify code style"}},{"before":"0f5f05467eea3e1ec22e32300dc12cedf4fbc7e3","after":"f21582949dcd1d20e2313a4240fd851cf07193ad","ref":"refs/heads/unify-code-style","pushedAt":"2023-06-21T10:15:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Update do_inserter.rb","shortMessageHtmlLink":"Update do_inserter.rb"}},{"before":"749ca18ea22b4809edb9f783014c88dffd43c45f","after":"0f5f05467eea3e1ec22e32300dc12cedf4fbc7e3","ref":"refs/heads/unify-code-style","pushedAt":"2023-06-21T10:15:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Revert replacing regular expression via Rubocop","shortMessageHtmlLink":"Revert replacing regular expression via Rubocop"}},{"before":null,"after":"749ca18ea22b4809edb9f783014c88dffd43c45f","ref":"refs/heads/unify-code-style","pushedAt":"2023-06-21T10:11:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Unify code style\n\nIn order to make the project more consistent and more agreable to maintain,\nwelcoming to new contributors, I applied the dominant code style to places where\nit was different.","shortMessageHtmlLink":"Unify code style"}},{"before":"5866946105356ebbcf08f6addc76324b932e2f50","after":null,"ref":"refs/heads/gsub-tr-performance","pushedAt":"2023-06-21T09:49:17.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"}},{"before":"3df8a2f7a5cf315ef583463d37948d6e8c1ce79c","after":"5866946105356ebbcf08f6addc76324b932e2f50","ref":"refs/heads/gsub-tr-performance","pushedAt":"2023-06-21T09:39:04.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Use tr() instead of gsub() to improve performance\n\n- When no replacement is needed, tr() is as fast as gsub()\n- When a replacement happens, gsub() is many times slower than tr()\n\n```ruby\n\nrequire 'benchmark'\n\nstring_no_underscore = 'disabled'\nstring_one_underscore = 'data_turbo'\nstring_two_underscores = 'data_turbo_frame'\n\nn = 1_000_000\n\nputs ''\nputs 'String with no underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_no_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_no_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with on _underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_one_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_one_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with tw _underscores'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_two_underscores.tr('_', '-') } }\n x.report('gsub:') { n.times { string_two_underscores.gsub('_', '-') } }\nend\n```\n\nString with no underscore\n\nRehearsal -----------------------------------------\ntr: 0.077771 0.002576 0.080347 ( 0.080348)\ngsub: 0.078601 0.002561 0.081162 ( 0.081167)\n-------------------------------- total: 0.161509sec\n\n user system total real\ntr: 0.077929 0.002875 0.080804 ( 0.080843)\ngsub: 0.078280 0.002716 0.080996 ( 0.081017)\n\nString with on _underscore\n\nRehearsal -----------------------------------------\ntr: 0.082409 0.001873 0.084282 ( 0.084294)\ngsub: 0.192463 0.005014 0.197477 ( 0.197483)\n-------------------------------- total: 0.281759sec\n\n user system total real\ntr: 0.083051 0.002703 0.085754 ( 0.085761)\ngsub: 0.193000 0.005201 0.198201 ( 0.198208)\n\nString with tw _underscores\n\nRehearsal -----------------------------------------\ntr: 0.086655 0.002528 0.089183 ( 0.089183)\ngsub: 0.239162 0.005984 0.245146 ( 0.245157)\n-------------------------------- total: 0.334329sec\n\n user system total real\ntr: 0.086596 0.002791 0.089387 ( 0.089392)\ngsub: 0.241907 0.006619 0.248526 ( 0.248530)","shortMessageHtmlLink":"Use tr() instead of gsub() to improve performance"}},{"before":"38fe9db1535741bffe60acda5e6ca65a6ad4ebe0","after":"3df8a2f7a5cf315ef583463d37948d6e8c1ce79c","ref":"refs/heads/gsub-tr-performance","pushedAt":"2023-06-21T09:37:16.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Use tr() instead of gsub() to improve performance\n\nWhen no replacement is needed, tr() is as fast as gsub()\nWhen a replacement happens, gsub() is many times slower.\n\n# Benchmark\n\n## Source\n\n```ruby\n# frozen_string_literal: true\n\nrequire 'benchmark'\n\nstring_no_underscore = 'disabled'\nstring_one_underscore = 'data_turbo'\nstring_two_underscores = 'data_turbo_frame'\n\nn = 1_000_000\n\nputs ''\nputs 'String with no underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_no_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_no_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with on _underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_one_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_one_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with tw _underscores'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_two_underscores.tr('_', '-') } }\n x.report('gsub:') { n.times { string_two_underscores.gsub('_', '-') } }\nend\n```\n\n## Results\n\nString with no underscore\n\nRehearsal -----------------------------------------\ntr: 0.077771 0.002576 0.080347 ( 0.080348)\ngsub: 0.078601 0.002561 0.081162 ( 0.081167)\n-------------------------------- total: 0.161509sec\n\n user system total real\ntr: 0.077929 0.002875 0.080804 ( 0.080843)\ngsub: 0.078280 0.002716 0.080996 ( 0.081017)\n\nString with on _underscore\n\nRehearsal -----------------------------------------\ntr: 0.082409 0.001873 0.084282 ( 0.084294)\ngsub: 0.192463 0.005014 0.197477 ( 0.197483)\n-------------------------------- total: 0.281759sec\n\n user system total real\ntr: 0.083051 0.002703 0.085754 ( 0.085761)\ngsub: 0.193000 0.005201 0.198201 ( 0.198208)\n\nString with tw _underscores\n\nRehearsal -----------------------------------------\ntr: 0.086655 0.002528 0.089183 ( 0.089183)\ngsub: 0.239162 0.005984 0.245146 ( 0.245157)\n-------------------------------- total: 0.334329sec\n\n user system total real\ntr: 0.086596 0.002791 0.089387 ( 0.089392)\ngsub: 0.241907 0.006619 0.248526 ( 0.248530)","shortMessageHtmlLink":"Use tr() instead of gsub() to improve performance"}},{"before":null,"after":"38fe9db1535741bffe60acda5e6ca65a6ad4ebe0","ref":"refs/heads/gsub-tr-performance","pushedAt":"2023-06-21T09:35:49.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"czj","name":"Clément Joubert","path":"/czj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14306?s=80&v=4"},"commit":{"message":"Use tr() instead of gsub() to improve performance\n\nWhen no replacement is needed, tr() is as fast as gsub()\nWhen a replacement happens, gsub() is many times faster.\n\n# Benchmark\n\n## Source\n\n```ruby\n# frozen_string_literal: true\n\nrequire 'benchmark'\n\nstring_no_underscore = 'disabled'\nstring_one_underscore = 'data_turbo'\nstring_two_underscores = 'data_turbo_frame'\n\nn = 1_000_000\n\nputs ''\nputs 'String with no underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_no_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_no_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with on _underscore'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_one_underscore.tr('_', '-') } }\n x.report('gsub:') { n.times { string_one_underscore.gsub('_', '-') } }\nend\n\nputs ''\nputs 'String with tw _underscores'\nputs ''\n\nBenchmark.bmbm do |x|\n x.report('tr:') { n.times { string_two_underscores.tr('_', '-') } }\n x.report('gsub:') { n.times { string_two_underscores.gsub('_', '-') } }\nend\n```\n\n## Results\n\nString with no underscore\n\nRehearsal -----------------------------------------\ntr: 0.077771 0.002576 0.080347 ( 0.080348)\ngsub: 0.078601 0.002561 0.081162 ( 0.081167)\n-------------------------------- total: 0.161509sec\n\n user system total real\ntr: 0.077929 0.002875 0.080804 ( 0.080843)\ngsub: 0.078280 0.002716 0.080996 ( 0.081017)\n\nString with on _underscore\n\nRehearsal -----------------------------------------\ntr: 0.082409 0.001873 0.084282 ( 0.084294)\ngsub: 0.192463 0.005014 0.197477 ( 0.197483)\n-------------------------------- total: 0.281759sec\n\n user system total real\ntr: 0.083051 0.002703 0.085754 ( 0.085761)\ngsub: 0.193000 0.005201 0.198201 ( 0.198208)\n\nString with tw _underscores\n\nRehearsal -----------------------------------------\ntr: 0.086655 0.002528 0.089183 ( 0.089183)\ngsub: 0.239162 0.005984 0.245146 ( 0.245157)\n-------------------------------- total: 0.334329sec\n\n user system total real\ntr: 0.086596 0.002791 0.089387 ( 0.089392)\ngsub: 0.241907 0.006619 0.248526 ( 0.248530)","shortMessageHtmlLink":"Use tr() instead of gsub() to improve performance"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADRrRNGwA","startCursor":null,"endCursor":null}},"title":"Activity · levups/slim"}