Skip to content
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

refactor(pdk/log): optimize log serialize #13177

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

bungle
Copy link
Member

@bungle bungle commented Jun 6, 2024

Summary

Just some miscellaneous optimizations to log serializer:

  • avoid unnecessary table creation and modification
  • move variable creation closer to usage
  • do not use tail calls
  • remove EMPTY_TAB
  • faster split by dot implementation

KAG-4728

@github-actions github-actions bot added core/logs cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jun 6, 2024
@bungle bungle force-pushed the chore/pdk-log-serialize-optimizations branch 5 times, most recently from 92b5c40 to 8a376bf Compare June 6, 2024 11:15
@bungle bungle marked this pull request as draft June 6, 2024 11:22
@bungle bungle force-pushed the chore/pdk-log-serialize-optimizations branch 3 times, most recently from 6695fe1 to b57128a Compare June 11, 2024 18:12
@bungle bungle marked this pull request as ready for review June 11, 2024 18:14
### Summary

Just some miscellaneous optimizations to log serializer:
- avoid unnecessary table creation and modification
- move variable creation closer to usage
- do not use tail calls
- remove EMPTY_TAB
- faster split by dot implementation

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
@bungle bungle force-pushed the chore/pdk-log-serialize-optimizations branch from b57128a to a489f85 Compare June 12, 2024 08:03
@bungle bungle changed the title chore(pdk/log): optimize log serialize refactor(pdk/log): optimize log serialize Jun 12, 2024
@bungle bungle merged commit 211dab1 into master Jun 12, 2024
27 checks passed
@bungle bungle deleted the chore/pdk-log-serialize-optimizations branch June 12, 2024 12:32
@team-gateway-bot
Copy link
Collaborator

Cherry-pick failed for master, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13177-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13177-to-master-to-upstream
git checkout -b cherry-pick-13177-to-master-to-upstream
ancref=$(git merge-base 5c34759a96b82b54a81b8d6ffec6ce60ded15cc6 a489f8550ab25e0f5a66cf32e7eac0dfc55465e6)
git cherry-pick -x $ancref..a489f8550ab25e0f5a66cf32e7eac0dfc55465e6

@github-actions github-actions bot added the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Jun 12, 2024
@bungle bungle removed the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Jun 12, 2024
locao pushed a commit that referenced this pull request Jun 21, 2024
Just some miscellaneous optimizations to log serializer:
- avoid unnecessary table creation and modification
- move variable creation closer to usage
- do not use tail calls
- remove EMPTY_TAB
- faster split by dot implementation

Signed-off-by: Aapo Talvensaari <aapo.talvensaari@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/logs size/L skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants