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

avoid many allocations? #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

avoid many allocations? #50

wants to merge 1 commit into from

Conversation

bruhmoment21
Copy link
Contributor

would this be better if people avoid allocating because of std::string?

would this be better if people avoid allocating because of std::string?
@bruhmoment21
Copy link
Contributor Author

and i forgot to add
#include <string_view>

@vxvvxv
Copy link

vxvvxv commented Jun 30, 2020

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

@bruhmoment21
Copy link
Contributor Author

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

i think sso doesn t work in debug mode(correct me if im wrong). you could get better fps when debugging

@vxvvxv
Copy link

vxvvxv commented Jun 30, 2020

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

i think sso doesn t work in debug mode(correct me if im wrong). you could get better fps when debugging

yeah in debug mode it will allocate

@designer1337
Copy link
Owner

whole interface system needs rewrite, gonna push update in few mins

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.

3 participants