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

[Please test] Optimize g_fxo and future typemaps #9714

Merged
merged 6 commits into from Mar 2, 2021

Conversation

Nekotekina
Copy link
Member

Reduce pointer indirection.

@Nekotekina
Copy link
Member Author

Working on proper dynamic type handling.


// Obtain object pointer if initialized
template <typename T>
T* try_get() const noexcept
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe can be written after pr but I think get() should return a reference and not a pointer to emphasize the fact that it won't return nullptr on failure.

Copy link
Member Author

Choose a reason for hiding this comment

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

I technically agree but too many spam changes.

@Nekotekina
Copy link
Member Author

Seems to almost work now.

@Nekotekina
Copy link
Member Author

Fixed more bugs, maybe it's finally mergeable.

@Nekotekina Nekotekina changed the title [WIP] Optimize g_fxo and future typemaps Optimize g_fxo and future typemaps Mar 1, 2021
@Nekotekina
Copy link
Member Author

Ah I see, damn it.

@Nekotekina Nekotekina force-pushed the master branch 2 times, most recently from 8dc3bf3 to dc7dbc0 Compare March 1, 2021 17:09
@Nekotekina
Copy link
Member Author

Yay! Who is ready to suffer insufferable regressions? Just kidding, I think I'll modify get() operator in this PR as well.

@Nekotekina Nekotekina changed the title Optimize g_fxo and future typemaps [Please test] Optimize g_fxo and future typemaps Mar 1, 2021
@Nekotekina Nekotekina force-pushed the master branch 2 times, most recently from e0f5b6c to af80c43 Compare March 2, 2021 12:57
This allows contiguous allocation (as in an aggregate).
Implement is_init() method.
Implement optional Size template arg for further optimization.
Backported some changes from auto_typemap.hpp
Implemented methods init(), reset(), clear()
Disabled recreation support.
Fix few misused threads and other bugs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optimization Optimizes existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants