Advertisement Jump to content
Sign in to follow this  
iraxef

[PATCH] conditionally add move cctor and assignment operator to asCString

This topic is 1799 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Tested on linux under gcc 4.8.2.

 

The definition of AS_CAN_USE_CPP11 is now in multiple places (though I took it from one of the add-ons). Perhaps it should go in as_config.h?

 

I was going to also add checking for Clang, but perhaps that can be left for the future.

 

Share this post


Link to post
Share on other sites
Advertisement


Did you notice any significant performance improvement when adding these?

 

Timing the execution of ListFunctions() in the console example, I get 0.000051sec before and 0.000040sec after, which is a ~20% improvement. (I know that that function triggers a handful of operations involving the new functions which take &&)

 

 

I plan to time some of my own larger scripts, but won't be able to do that until tomorrow.

Share this post


Link to post
Share on other sites

I've incorporated this patch in revision 1843.

 

I didn't notice any significant performance changes though, neither when building scripts nor when running them. 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!