Skip to content

Conversation

@Mistium
Copy link
Member

@Mistium Mistium commented Sep 24, 2025

Small changes to jsexecute about isNaN

#1

Ive replaced the values but it doesnt appear to make much of a noticable difference in performance on https://github.com/Its-Jakey/Linux-On-Scratch/blob/main/rv32ima.sb3

i decided to use linux on scratch because it was mentioned by garbo under this same topic, however ive not seen much change on its boot times

@Mistium
Copy link
Member Author

Mistium commented Sep 24, 2025

Appears that this breaks compatibility too, though im not sure how. i might need to look more into isNaN but it seemed like all the inputs had been coerced before being passed to Number.isNaN

edit: nevermind, its something wrong with my local copy of mw

@Mistium Mistium marked this pull request as draft September 24, 2025 10:08
@Mistium
Copy link
Member Author

Mistium commented Sep 24, 2025

these changes appear to break nothing and give free performance

@Mistium
Copy link
Member Author

Mistium commented Sep 24, 2025

triple equals should be faster on other browsers like firefox, no point in not using it there when you know it has to be a number or NaN

@Mistium Mistium self-assigned this Sep 24, 2025
@Mistium Mistium linked an issue Sep 24, 2025 that may be closed by this pull request
@Mistium Mistium marked this pull request as ready for review October 20, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Look into isNaN

1 participant