-
Notifications
You must be signed in to change notification settings - Fork 288
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
codec(ticdc): reduce canal-json decode memory consumption by using buffered json decoder #11911
Conversation
How much memory will be reduced after applying this? |
previous, takes around 62%. now takes around 40%. I tried several json library, all takes a lot of memory in the consumer scenario. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asddongmen, wk989898 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/retest |
/retest |
/retest |
2 similar comments
/retest |
/retest |
/retest |
2 similar comments
/retest |
/retest |
What problem does this PR solve?
Issue Number: ref #11894
This is the second part to reduce the memory cost by the canal-json decoder when works with the consumer.
What is changed and how it works?
Unmarshal
method, but still takes a lot.CanalJSONTxnDecoder
, split related logic, to simplify the normal canal-json decoder.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note