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

feat: add IDL trimming #118

Merged
merged 22 commits into from
Aug 23, 2023
Merged

feat: add IDL trimming #118

merged 22 commits into from
Aug 23, 2023

Conversation

tksky1
Copy link
Contributor

@tksky1 tksky1 commented Aug 22, 2023

Description

add a trim tool to remove unused part of IDL and dump the trimmed one;
add -t for thriftgo to pre-trim the IDL before generating go code

Motivation and Context

for many IDLs, a lot of unused fields and included IDLs will also be generated as Go code, even the service use little of them, which can make the generated code unnecessarily big. By adding a way to pre-trim the IDL to remove unused parts for services, or adding an option to trim the IDL before generating the go code, can be helpful to limit the size of generated code.

@tksky1 tksky1 requested review from a team as code owners August 22, 2023 07:38
@CLAassistant
Copy link

CLAassistant commented Aug 22, 2023

CLA assistant check
All committers have signed the CLA.

@HeyJavaBean HeyJavaBean enabled auto-merge (squash) August 23, 2023 12:25
@HeyJavaBean HeyJavaBean merged commit 9124651 into cloudwego:main Aug 23, 2023
2 of 3 checks passed
tksky1 added a commit to tksky1/thriftgo that referenced this pull request Oct 5, 2023
Co-authored-by: HeyJavaBean <imlehr@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants