Initial buffer_ieee754 Micro Optimizations #4266

Closed
wants to merge 1 commit into
from

Projects

None yet

1 participant

@trevnorris

Attempting to bring writeIEEE754 performance closer to that of
DataView's setFloat32. These few small changes increase performance by
about 20%. They include:

  • Removal of isNaN() checks. Arguments are controlled, so no need for
    that check.
  • Variable rt wasn't caching a static result. Added that as constant at
    top of script.
  • Inlined the absolute assignation of value.
  • Assigned more values at beginning because of previous.
@trevnorris trevnorris Initial buffer_ieee754 Micro Optimizations
Attempting to bring writeIEEE754 performance closer to that of
DataView's setFloat32. These few small changes increase performance by
about 20%. They include:

- Removal of isNaN() checks. Arguments are controlled, so no need for
  that check.
- Variable rt wasn't caching a static result. Added that as constant at
  top of script.
- Inlined the absolute assignation of value.
- Assigned more values at beginning because of previous.
cd182fc
@trevnorris

This is being rendered useless by another patch I've been working on.

@trevnorris trevnorris closed this Jan 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment