-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: steps to production from this project #65
Comments
Perhaps the most important part missing in being production-ready is an intention to support the project in the future. If someone reports an issue with this project, and we don't believe actually fixing it would improve the project in the direction of being a learning resource, it might just turn into another one of those comments you mentioned. As for your lru frame, it seems like the parsing spends the majority of the time inside a call to |
Looking at the code, Line 148 in b552f53
|
You would have to change several other parts of the codebase to elide that copy if it's possible at all. |
I try to make the parsing code without copy: My modified version records the start and end position in the slice and uses split_to and freeze to get Bytes from BytesMut. |
I implement a lru cache based on this project. I know that this project isn't for production use. But what's the step missing for production usage? I know there're a few fix constants documented in the comments. Besides that, is there any good practice that does not exercise for this project to be ready for production usage? I'm new to tokio.
Looking at the flamegraph of the lru cache,
I notice that parsing the command takes a substantial time which might have room to optimize. Is there anything else that could be done better?
The text was updated successfully, but these errors were encountered: