Commit e3740e45 authored by Karl Skomski's avatar Karl Skomski Committed by Alexis Campailla
Browse files

src: only memcmp if length > 0 in Buffer::Compare

Both pointer arguments to memcmp are defined as non-null
and compiler optimizes upon that.

PR-URL: https://github.com/nodejs/node/pull/2544


Reviewed-By: default avatartrevnorris - Trevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarthefourtheye - Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
parent 37ee43ef
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