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

Use DIRECT_METHOD_CALL macro in ILinksExtensions.h #136

Closed

Conversation

linksplatform-sweepai[bot]
Copy link
Contributor

Description

This PR updates the ILinksExtensions.h file in the cpp/Platform.Data directory to use the DIRECT_METHOD_CALL macro for all extension methods. The DIRECT_METHOD_CALL macro is used to directly call a method on the TStorage object, bypassing any virtual dispatch mechanism. This improves the performance of the code by avoiding the overhead of virtual function calls.

Summary of Changes

  • Replaced direct method calls with the DIRECT_METHOD_CALL macro in the following extension methods:
    • Create
    • Update
    • Delete
    • Count
    • Exists
    • Each
    • GetLink
    • IsFullPoint
    • IsPartialPoint
  • Passed the method arguments as arguments to the DIRECT_METHOD_CALL macro.
  • Used the return value of the DIRECT_METHOD_CALL macro as the return value of each extension method.

Fixes #134.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

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

Successfully merging this pull request may close these issues.

Sweep: use DIRECT_METHOD_CALL macro in cpp/Platform.Data/ILinksExtensions.h
0 participants