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

Batch event retrieval in cgo for performance enhancement #560

Merged
merged 6 commits into from
Aug 28, 2023

Conversation

YDMsama
Copy link
Contributor

@YDMsama YDMsama commented Aug 14, 2023

Description

Introduced a new function in cgo to retrieve multiple events in a single call, aiming to improve the efficiency of event processing. Instead of fetching one event at a time, the system can now fetch up to a predefined number of events, reducing the overhead of function calls and potentially improving the overall throughput of the event handling mechanism.

Changes made:

Added a new function getKindlingEvents in cgo_func.cpp which calls the get_events function in kindling.cpp.
The get_events function in kindling.cpp is designed to fetch multiple events up to a defined maximum (MAX_EVENTS).
Modified the startGetEvent function in Go to handle the batch of events returned by the new getKindlingEvents function.

How Has This Been Tested?

The compiled image runs normally.

YDMsama and others added 2 commits August 14, 2023 17:20
Signed-off-by: YDMsama <ydmsama@gmail.com>
Signed-off-by: YDMsama <127646431+YDMsama@users.noreply.github.com>
@YDMsama
Copy link
Contributor Author

YDMsama commented Aug 16, 2023

unfinished

dxsup
dxsup previously approved these changes Aug 24, 2023
@dxsup dxsup merged commit d937235 into KindlingProject:main Aug 28, 2023
5 checks passed
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.

2 participants