{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":193812470,"defaultBranch":"main","name":"cacache","ownerLogin":"npm","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2019-06-26T02:07:17.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/6078720?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1714959652.0","currentOid":""},"activityList":{"items":[{"before":"1c228bd02ec618da913a3c6c12999af6a7ac9235","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/tar-7.0.1","pushedAt":"2024-05-06T01:40:52.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":null,"after":"bf58173e3eee775ee34a303522d09cf4b776f851","ref":"refs/heads/dependabot/npm_and_yarn/main/tar-7.1.0","pushedAt":"2024-05-06T01:40:48.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"deps: bump tar from 6.2.1 to 7.1.0\n\nBumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.1.0.\n- [Release notes](https://github.com/isaacs/node-tar/releases)\n- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.1.0)\n\n---\nupdated-dependencies:\n- dependency-name: tar\n dependency-type: direct:production\n update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"deps: bump tar from 6.2.1 to 7.1.0"}},{"before":"a2c4cfa2bd0d330d01dff30a066a42be69c116ec","after":null,"ref":"refs/heads/release-please--branches--main","pushedAt":"2024-05-04T01:07:53.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"}},{"before":"326c7a34829810f934ba8dd51d010ef03d619702","after":"f9ebcea7e36403d37cd46da1567f40302b950ea7","ref":"refs/heads/main","pushedAt":"2024-05-04T01:07:52.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"chore: release 18.0.3 (#270)\n\n:robot: I have created a release *beep* *boop*\n---\n\n\n## [18.0.3](https://github.com/npm/cacache/compare/v18.0.2...v18.0.3)\n(2024-05-04)\n\n### Bug Fixes\n\n*\n[`326c7a3`](https://github.com/npm/cacache/commit/326c7a34829810f934ba8dd51d010ef03d619702)\n[#269](https://github.com/npm/cacache/pull/269) linting: no-unused-vars\n(@lukekarrys)\n\n### Chores\n\n*\n[`b685cb5`](https://github.com/npm/cacache/commit/b685cb51ef8de7f570f42c9053e8cbaa6ae09c6a)\n[#269](https://github.com/npm/cacache/pull/269) bump\n@npmcli/template-oss to 4.22.0 (@lukekarrys)\n*\n[`4a66453`](https://github.com/npm/cacache/commit/4a66453c237fe4573fcb725a3435b3ccc9bf20c2)\n[#269](https://github.com/npm/cacache/pull/269) postinstall for\ndependabot template-oss PR (@lukekarrys)\n*\n[`4359f2c`](https://github.com/npm/cacache/commit/4359f2c9189a89e200f945d9edfc1eda96fcdd17)\n[#264](https://github.com/npm/cacache/pull/264) bump\n@npmcli/template-oss from 4.21.3 to 4.21.4 (@dependabot[bot])\n\n---\nThis PR was generated with [Release\nPlease](https://github.com/googleapis/release-please). See\n[documentation](https://github.com/googleapis/release-please#release-please).\n\nCo-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>","shortMessageHtmlLink":"chore: release 18.0.3 (#270)"}},{"before":"0f2477f57c091af6c064f033c7fbb33997495e15","after":"a2c4cfa2bd0d330d01dff30a066a42be69c116ec","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-05-04T00:56:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.3","shortMessageHtmlLink":"chore: release 18.0.3"}},{"before":"1f5b8ed64d2efb3b611d5c9a2f3760e86c1f2fe9","after":"0f2477f57c091af6c064f033c7fbb33997495e15","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-05-04T00:55:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.3","shortMessageHtmlLink":"chore: release 18.0.3"}},{"before":"2dd8bc3e2cf366e3d4ef762657fe98f6f30dd691","after":null,"ref":"refs/heads/stafftools/update-template-oss","pushedAt":"2024-05-04T00:54:10.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"}},{"before":"42c76aca096fde52081289423f12bd3fb7c720a0","after":"326c7a34829810f934ba8dd51d010ef03d619702","ref":"refs/heads/main","pushedAt":"2024-05-04T00:54:09.000Z","pushType":"pr_merge","commitsCount":3,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"fix(linting): no-unused-vars","shortMessageHtmlLink":"fix(linting): no-unused-vars"}},{"before":"559c6e67730413ba4ea9ec9af40239831e5a5bce","after":"2dd8bc3e2cf366e3d4ef762657fe98f6f30dd691","ref":"refs/heads/stafftools/update-template-oss","pushedAt":"2024-05-03T21:15:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"fix(linting): no-unused-vars","shortMessageHtmlLink":"fix(linting): no-unused-vars"}},{"before":null,"after":"559c6e67730413ba4ea9ec9af40239831e5a5bce","ref":"refs/heads/stafftools/update-template-oss","pushedAt":"2024-05-03T18:39:59.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"chore: postinstall for dependabot template-oss PR","shortMessageHtmlLink":"chore: postinstall for dependabot template-oss PR"}},{"before":"89a2b6bf4f83921a75b4f6d05000156499fcb188","after":"1f5b8ed64d2efb3b611d5c9a2f3760e86c1f2fe9","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-04-21T16:38:42.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.3","shortMessageHtmlLink":"chore: release 18.0.3"}},{"before":"42c76aca096fde52081289423f12bd3fb7c720a0","after":"89a2b6bf4f83921a75b4f6d05000156499fcb188","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-04-21T16:37:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.3","shortMessageHtmlLink":"chore: release 18.0.3"}},{"before":null,"after":"42c76aca096fde52081289423f12bd3fb7c720a0","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-04-21T16:37:51.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: postinstall for dependabot template-oss PR","shortMessageHtmlLink":"chore: postinstall for dependabot template-oss PR"}},{"before":"e650e2c6043b5456bd537319473ccb43cf140c92","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/npmcli/template-oss-4.21.4","pushedAt":"2024-04-21T16:37:00.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"}},{"before":"3de26afbacddc2ff8a7c62536bee9f092b851c61","after":"42c76aca096fde52081289423f12bd3fb7c720a0","ref":"refs/heads/main","pushedAt":"2024-04-21T16:36:59.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"chore: postinstall for dependabot template-oss PR","shortMessageHtmlLink":"chore: postinstall for dependabot template-oss PR"}},{"before":"42e640202a437f2ff271af7cca779444661eb747","after":"e650e2c6043b5456bd537319473ccb43cf140c92","ref":"refs/heads/dependabot/npm_and_yarn/main/npmcli/template-oss-4.21.4","pushedAt":"2024-04-20T21:54:57.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"lukekarrys","name":"Luke Karrys","path":"/lukekarrys","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/542108?s=80&v=4"},"commit":{"message":"chore: postinstall for dependabot template-oss PR","shortMessageHtmlLink":"chore: postinstall for dependabot template-oss PR"}},{"before":"7f90d271b6ce5a79c52127e02f3342d4764c90d3","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/p-map-7.0.1","pushedAt":"2024-04-16T01:48:17.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":null,"after":"3220fbeb8ac081b6cae3dfa142f1f812e0dffbb5","ref":"refs/heads/dependabot/npm_and_yarn/main/p-map-7.0.2","pushedAt":"2024-04-16T01:48:13.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"deps: bump p-map from 4.0.0 to 7.0.2\n\nBumps [p-map](https://github.com/sindresorhus/p-map) from 4.0.0 to 7.0.2.\n- [Release notes](https://github.com/sindresorhus/p-map/releases)\n- [Commits](https://github.com/sindresorhus/p-map/compare/v4.0.0...v7.0.2)\n\n---\nupdated-dependencies:\n- dependency-name: p-map\n dependency-type: direct:production\n update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"deps: bump p-map from 4.0.0 to 7.0.2"}},{"before":null,"after":"1c228bd02ec618da913a3c6c12999af6a7ac9235","ref":"refs/heads/dependabot/npm_and_yarn/main/tar-7.0.1","pushedAt":"2024-04-16T01:48:03.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"deps: bump tar from 6.2.1 to 7.0.1\n\nBumps [tar](https://github.com/isaacs/node-tar) from 6.2.1 to 7.0.1.\n- [Release notes](https://github.com/isaacs/node-tar/releases)\n- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.1...v7.0.1)\n\n---\nupdated-dependencies:\n- dependency-name: tar\n dependency-type: direct:production\n update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"deps: bump tar from 6.2.1 to 7.0.1"}},{"before":null,"after":"42e640202a437f2ff271af7cca779444661eb747","ref":"refs/heads/dependabot/npm_and_yarn/main/npmcli/template-oss-4.21.4","pushedAt":"2024-04-16T01:47:52.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"chore: bump @npmcli/template-oss from 4.21.3 to 4.21.4\n\nBumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 4.21.3 to 4.21.4.\n- [Release notes](https://github.com/npm/template-oss/releases)\n- [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/npm/template-oss/compare/v4.21.3...v4.21.4)\n\n---\nupdated-dependencies:\n- dependency-name: \"@npmcli/template-oss\"\n dependency-type: direct:development\n update-type: version-update:semver-patch\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"chore: bump @npmcli/template-oss from 4.21.3 to 4.21.4"}},{"before":"f1546f40ad5de78ecad9f866367951abd11a8704","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/tap-18.7.1","pushedAt":"2024-04-16T00:13:24.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":"9e112202d6603329963fc7e0abe4dad6dab92ef7","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/tap-18.7.0","pushedAt":"2024-03-11T01:47:48.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":null,"after":"f1546f40ad5de78ecad9f866367951abd11a8704","ref":"refs/heads/dependabot/npm_and_yarn/main/tap-18.7.1","pushedAt":"2024-03-11T01:47:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"chore: bump tap from 16.3.10 to 18.7.1\n\nBumps [tap](https://github.com/tapjs/tapjs) from 16.3.10 to 18.7.1.\n- [Release notes](https://github.com/tapjs/tapjs/releases)\n- [Commits](https://github.com/tapjs/tapjs/compare/v16.3.10...tap@18.7.1)\n\n---\nupdated-dependencies:\n- dependency-name: tap\n dependency-type: direct:development\n update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"chore: bump tap from 16.3.10 to 18.7.1"}},{"before":"bd7cc93fd150116e4ca20df3a03be4c1efd0af5d","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/main/tap-18.6.1","pushedAt":"2024-01-26T01:15:24.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":null,"after":"9e112202d6603329963fc7e0abe4dad6dab92ef7","ref":"refs/heads/dependabot/npm_and_yarn/main/tap-18.7.0","pushedAt":"2024-01-26T01:15:20.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"chore: bump tap from 16.3.10 to 18.7.0\n\nBumps [tap](https://github.com/tapjs/tapjs) from 16.3.10 to 18.7.0.\n- [Release notes](https://github.com/tapjs/tapjs/releases)\n- [Commits](https://github.com/tapjs/tapjs/compare/v16.3.10...tap@18.7.0)\n\n---\nupdated-dependencies:\n- dependency-name: tap\n dependency-type: direct:development\n update-type: version-update:semver-major\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"chore: bump tap from 16.3.10 to 18.7.0"}},{"before":"099236ae6a240a457ad9eae0616912392d818146","after":null,"ref":"refs/heads/release-please--branches--main","pushedAt":"2024-01-04T16:25:10.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"wraithgar","name":"Gar","path":"/wraithgar","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/36607?s=80&v=4"}},{"before":"b9f488d8667e76aefb9c25d2ff51c81fd9f8539c","after":"3de26afbacddc2ff8a7c62536bee9f092b851c61","ref":"refs/heads/main","pushedAt":"2024-01-04T16:25:09.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"wraithgar","name":"Gar","path":"/wraithgar","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/36607?s=80&v=4"},"commit":{"message":"chore: release 18.0.2 (#251)\n\n:robot: I have created a release *beep* *boop*\n---\n\n\n## [18.0.2](https://github.com/npm/cacache/compare/v18.0.1...v18.0.2)\n(2024-01-03)\n\n### Bug Fixes\n\n*\n[`b9f488d`](https://github.com/npm/cacache/commit/b9f488d8667e76aefb9c25d2ff51c81fd9f8539c)\n[#255](https://github.com/npm/cacache/pull/255) Speed up cache reads\n(#255) (@thecodrr)\n\n### Chores\n\n*\n[`7eab139`](https://github.com/npm/cacache/commit/7eab1395432d3a85fad394b810c9aa6929473e25)\n[#252](https://github.com/npm/cacache/pull/252) postinstall for\ndependabot template-oss PR (@lukekarrys)\n*\n[`44bedb2`](https://github.com/npm/cacache/commit/44bedb24525fc24d1140c9b434ab23f35bbc70b8)\n[#252](https://github.com/npm/cacache/pull/252) bump\n@npmcli/template-oss from 4.21.1 to 4.21.3 (@dependabot[bot])\n*\n[`a12bdf3`](https://github.com/npm/cacache/commit/a12bdf3a3bede99fb3024adeb770ef3f8495240b)\n[#248](https://github.com/npm/cacache/pull/248) postinstall for\ndependabot template-oss PR (@lukekarrys)\n*\n[`62e5a94`](https://github.com/npm/cacache/commit/62e5a9499103a23a4701077008017516d2f794bf)\n[#248](https://github.com/npm/cacache/pull/248) bump\n@npmcli/template-oss from 4.19.0 to 4.21.1 (@dependabot[bot])\n\n---\nThis PR was generated with [Release\nPlease](https://github.com/googleapis/release-please). See\n[documentation](https://github.com/googleapis/release-please#release-please).\n\nCo-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>","shortMessageHtmlLink":"chore: release 18.0.2 (#251)"}},{"before":"63bef2b84b4c9f673a9aa9a4f81f1f533d5e2f8d","after":"099236ae6a240a457ad9eae0616912392d818146","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-01-03T17:58:03.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.2","shortMessageHtmlLink":"chore: release 18.0.2"}},{"before":"940a1170642eea3eba0bca5a5659c4e10573c140","after":"63bef2b84b4c9f673a9aa9a4f81f1f533d5e2f8d","ref":"refs/heads/release-please--branches--main","pushedAt":"2024-01-03T17:57:11.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"chore: release 18.0.2","shortMessageHtmlLink":"chore: release 18.0.2"}},{"before":"7eab1395432d3a85fad394b810c9aa6929473e25","after":"b9f488d8667e76aefb9c25d2ff51c81fd9f8539c","ref":"refs/heads/main","pushedAt":"2024-01-03T17:56:14.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"wraithgar","name":"Gar","path":"/wraithgar","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/36607?s=80&v=4"},"commit":{"message":"fix: Speed up cache reads (#255)\n\nThis PR speeds up `read.stream` and `read` by skipping `fs.stat` call if\r\n`size` was passed via `opts`. Currently, the only reason for doing a\r\n`stat` call is to get the size (and throw the size mismatch error if the\r\nsize is different). This is unnecessary for 3 reasons:\r\n\r\n1. In the case of `read.stream`, the stream already compares the sizes\r\nat the end and throws an error if there's a mismatch.\r\n2. In the case of `read`, we can compare the sizes after reading the\r\ncache contents\r\n3. In both cases we are already doing an integrity check which would\r\nautomatically fail if there's a size difference since the hashes would\r\nbe different.\r\n\r\nIn this PR, the `stat` call is only made if the user does not pass a\r\n`size` property via `opts`. This makes sense because without knowing the\r\n`size`, the stream has to make an unnecessary `fs.read` call at the end\r\nbefore closing which has a significant cost (that cost is much, much\r\ngreater than the cost of doing `fs.stat`).\r\n\r\nOn my machine, the benchmarks with this change look like this:\r\n```\r\n┌─────────┬─────────────────────┬─────────┬────────────────────┬───────────┬─────────┐\r\n│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │\r\n├─────────┼─────────────────────┼─────────┼────────────────────┼───────────┼─────────┤\r\n│ 0 │ 'read.stream (new)' │ '4,643' │ 215352.03841424757 │ '±10.20%' │ 465 │\r\n│ 1 │ 'read.stream (old)' │ '3,933' │ 254237.5665025663 │ '±7.17%' │ 394 │\r\n│ 2 │ 'read (old)' │ '2,915' │ 343045.55719845917 │ '±13.42%' │ 292 │\r\n│ 3 │ 'read (new)' │ '4,392' │ 227636.30011033904 │ '±12.14%' │ 449 │\r\n└─────────┴─────────────────────┴─────────┴────────────────────┴───────────┴─────────┘\r\n```\r\n\r\nThat's a solid 16% improvement in the case of `read.stream` and 36%\r\nimprovement in the case of `read`.","shortMessageHtmlLink":"fix: Speed up cache reads (#255)"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEQhn5awA","startCursor":null,"endCursor":null}},"title":"Activity · npm/cacache"}