Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@wpsmith
Copy link
Contributor

@wpsmith wpsmith commented Dec 28, 2015

While probably negligible, casting the integer (int) is faster than using intval(). Just an idea.

@danielbachhuber
Copy link
Member

casting the integer (int) is faster than using intval()

Can you point to data that supports this?

@wpsmithtwc
Copy link
Contributor

@danielbachhuber danielbachhuber added this to the 2.0 Beta 10 milestone Dec 28, 2015
danielbachhuber added a commit that referenced this pull request Dec 28, 2015
Cast integer with (int) over intval for speed
@danielbachhuber danielbachhuber merged commit e0f239e into WP-API:develop Dec 28, 2015
@danielbachhuber
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants