[HN Gopher] I made JSON.parse() 2x faster
       ___________________________________________________________________
        
       I made JSON.parse() 2x faster
        
       Author : radex
       Score  : 49 points
       Date   : 2023-03-04 12:48 UTC (10 hours ago)
        
 (HTM) web link (radex.io)
 (TXT) w3m dump (radex.io)
        
       | MichaelNozbe wrote:
       | Speed is the ultimate User Experience. Especially when it comes
       | to exchanging JSON data which is what apps do all the time these
       | days. Great job!
        
       | KomoD wrote:
       | I quite enjoyed this blog post to be honest
        
         | radex wrote:
         | Appreciated!
        
       | mfbx9da4 wrote:
       | Nice little rabbit hole you ended up in!
        
       | Waterluvian wrote:
       | This is delightful!
       | 
       | Maybe next you can make the object spread operator faster ;). I
       | was recently bitten by it in a hot loop, thinking it was
       | generally syntactic sugar. Turns out that if I know all the
       | property names in an object, it's far far faster to just assign
       | them all manually.
        
       | aabdelhafez wrote:
       | https://web.archive.org/web/20230304124849/https://radex.io/...
        
       | randyrand wrote:
       | This is a great blog post with few comments. Impressive work.
       | 
       | Did they merge it?
        
         | radex wrote:
         | Thanks! There's a preliminary PR with a discussion here:
         | https://github.com/facebook/hermes/pull/933 (and broader
         | context here: https://github.com/facebook/hermes/issues/811 ).
         | But we'll see if there's any interest on Hermes' side to
         | merging it. They definitely want to improve the parser, but
         | it's unclear to me if they want to take on the simdjson/simdutf
         | dependencies.
        
       ___________________________________________________________________
       (page generated 2023-03-04 23:01 UTC)