ecodeclub / eorm

简单 ORM 框架
Apache License 2.0
194 stars 64 forks source link

Precalculate offset of field and use `unsafe` to read data. #41

Closed flycash closed 2 years ago

flycash commented 2 years ago

English Only

Please check existing issues first to avoid duplication and answer the questions below before submitting your issue.

Please take note Enhancement is a suggestion to existing features and codebase. If you're requesting for a new feature, please select Feature.

Summary

Now, several APIs rely on reflection package to fetch the value by field name. But I think we can use unsafe instead. Here is the point:

(State a summary of your enhancement suggestion)

What version of EQL are you using?

What version of Go are you using?

(Get your go version by go version)

What is the current design/solution/implementation?

(If you can, link to the line of code that could be improved)

What could be made better?

(What you think should be enhanced and how?)

github-actions[bot] commented 2 years ago

This issue is inactive for a long time.

github-actions[bot] commented 2 years ago

This issue is inactive for a long time.