This js will cause serious slowness in besen #12

Open
opened 2016-08-11 09:44:21 +00:00 by tomcygnel · 0 comments
tomcygnel commented 2016-08-11 09:44:21 +00:00 (Migrated from github.com)

Hi!

I'm very impressed with your code. For the most part I haven't had problems but the js script below seems to cause serious slowness in besen.

function main(a)
{
    if (
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1) ||
        (a == 1) || (a == 1)
    ) {
        return -1;
    } else {
        return 1;
    }   
}
Hi! I'm very impressed with your code. For the most part I haven't had problems but the js script below seems to cause serious slowness in besen. ``` function main(a) { if ( (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) || (a == 1) ) { return -1; } else { return 1; } } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/besen#12
No description provided.