Skip to content

CGO fun. - #4012

Merged
fengttt merged 9 commits into
matrixorigin:mainfrom
fengttt:fengttt-vec-1
Jul 16, 2022
Merged

fengttt merged 9 commits into
matrixorigin:mainfrom
fengttt:fengttt-vec-1

Conversation

@fengttt

@fengttt fengttt commented Jul 15, 2022

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

Not Available

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

@lni

lni commented Jul 15, 2022

Copy link
Copy Markdown
Contributor

very interesting. any data on perf impact?

@lni
lni requested a review from reusee July 15, 2022 07:01
Comment thread cgo/mo.c Resolved
@fengttt fengttt mentioned this pull request Jul 15, 2022
1 task done
@fengttt

fengttt commented Jul 15, 2022

Copy link
Copy Markdown
Contributor Author

very interesting. any data on perf impact?

Not a problem assume vector is 4K+ long.

@nnsgmsone

Copy link
Copy Markdown
Contributor

very interesting. any data on perf impact?

I don't think batching will have a big impact, but add, set, contains are not appropriate operations for cgo.

@fengttt

fengttt commented Jul 15, 2022

Copy link
Copy Markdown
Contributor Author

very interesting. any data on perf impact?

I don't think batching will have a big impact, but add, set, contains are not appropriate operations for cgo.

We should never call set/contains etc in real code. Actually, we should never call bitmap cgo in real code. This is just for example and test.

I expect cgo will be used in

  1. vectorize code, and
  2. some really complex/heavy 3rd party library, for example json query jq stuff.

@fengttt
fengttt enabled auto-merge (squash) July 16, 2022 01:56
@fengttt
fengttt disabled auto-merge July 16, 2022 02:16
@fengttt
fengttt enabled auto-merge (squash) July 16, 2022 05:00
@fengttt
fengttt merged commit 3367e0e into matrixorigin:main Jul 16, 2022
@fengttt
fengttt deleted the fengttt-vec-1 branch August 5, 2022 06:59
fengttt added a commit to fengttt/matrixone that referenced this pull request May 7, 2026
* CGO fun.

* CGO fun. (#6)

Co-authored-by: Feng Tian <[email protected]>

* Update Makefile

enable cgo for static-check

* Update run_ut.sh

enable cgo for ut

Co-authored-by: maomao <[email protected]>
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.

7 participants