jcoglan/sylvester

Replace <= and >=

Opened this issue · 1 comments

Please replace all existing <= and >= with Sylvester.precision based operations such as

function leql(operand1, operand2) {
    return (operand1 < operand2) || eql(operand1, operand2);
}

for <=, which would probably solve #6 and other imaginable issues.

This is quite likely to lead to large performance degradations. Sylvester avoids function calls where possible; if you read the source you'll see that a lot of functions that could be implemented in terms of others are actually implemented with all the maths inline. This is because function calls are expensive and removing them lead to large performance gains.

Do you have any code examples to demonstrate how this would solve #6?