DEV Community

Discussion on: The Mysterious Double Tilde (~~) Operation

Collapse
 
savagepixie profile image
SavagePixie

That's a very interesting little thing. Do you happen to have any concrete data (or general idea) as to how much it improves performance?

(I'm not trying to contest your point, I'm just curious)

Collapse
 
asadm profile image
Asad Memon

At the time I first found it, I do remember comparing perf and finding it faster.

I just wrote a quick perf test, see the updated article!

Collapse
 
savagepixie profile image
SavagePixie

Cheers! That is a considerable increase from parseInt indeed!