This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
*: parse the data source directly into data and skip the KV encoder #145
*: parse the data source directly into data and skip the KV encoder #145
Changes from 11 commits
b00ba33
27f5be8
b645921
b15a293
e17c94d
91669db
a41fa4d
6aa40ab
7e86c78
98e1c18
27872b3
fa32cf7
c94bffa
8edafc6
b4bbacc
9e4f601
0ada276
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could use a memory pool to reduce memory allocation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question: if we want to reduce memory allocation, is it the best way to put
kvPair
into memory pool?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a much bigger change than that record cache, and since the KV pairs are shared across threads it may be harder to ensure thread safety. I'd like to hold this off unless the memory profile shows otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think it is better to maintain a free list in session struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kennytm Yes, it's OK for lightning.