Commit c9ee6542 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: simplify node::Utf8Value()

* Remove kStorageSize constant.

* Remove superfluous local variable and reinterpret_cast.

* Reorder data members so the length field and data pointer
  (if not the data itself) fit in a single cache line.

PR-URL: https://github.com/iojs/io.js/pull/1042


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 364cc7e0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment