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

perf(database/gdb): performance improvement for struct scanning when with feature disabled #3677

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

wln32
Copy link
Member

@wln32 wln32 commented Jul 5, 2024

No description provided.

@wln32 wln32 requested a review from gqcn July 5, 2024 13:56
database/gdb/gdb_model_soft_time.go Outdated Show resolved Hide resolved
@gqcn gqcn changed the title perf(database/gdb): 优化一些小细节 perf(database/gdb): performance improvement for struct scanning Jul 11, 2024
@gqcn gqcn changed the title perf(database/gdb): performance improvement for struct scanning perf(database/gdb): performance improvement for struct scanning when with feature disabled Jul 11, 2024
@@ -238,6 +235,23 @@ func (m *softTimeMaintainer) getSoftFieldNameAndType(
return
}

func getTableFields(fieldsMap map[string]*TableField, key string) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

方法名称尽量见名知意,这里的getTableFields跟方法逻辑内部差异较大,建议修改为searchFieldNameFromMap

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

方法名称尽量见名知意,这里的getTableFields跟方法逻辑内部差异较大,建议修改为searchFieldNameFromMap

嗯,可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants