block: eliminate byte concat copies in peek() with a memoryview#19
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughAdds a typed constructor and internal Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a6f1b47 to
b631cd4
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I assume you mean file reading was slow, unless you are working on something rather interesting? |
7d8f8b7 to
14b0d0a
Compare
sorry yes, reading, working on something boring; https://git.maemo.org/sanderfoobar/admp cheers! |
@kroketio You should include the license files in the vendored dependency folders to be compliant with the MIT license terms for each of them. Interesting project though! |
|
@Eeems done, thanks. |
When writing a 19mb file to disk (
Volume(...); volume.inode_at("/test_file"); f.write(inode.open().read())I noticed the file writing was slow, so I profiled it, and most time was spent inblock.py:peek()(21 seconds)With this commit file writing is a lot faster, 100ms for 50mb on my machine.
Summary by CodeRabbit
Refactor
Tests