Bug Tracker

Ticket #7587 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Bypass regexp on $.parseJSON for huge performance gains

Reported by: snover Owned by:
Priority: high Milestone:
Component: core Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:


$.parseJSON unconditionally runs data through a regular expression to ensure it does not contain any nasty payloads; this is incredibly slow and is not necessary for browsers with native JSON.parse support.

3rd party  pull request

Change History

comment:1 Changed 5 years ago by snover

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to core

comment:2 Changed 5 years ago by anonymous

Please, make a decission on this for 1.5.1.

comment:3 Changed 5 years ago by RoundCube User

This should be assigned to Milestone 1.5.1

Other applications (e.g. RoundCube) depend on that issue:  http://trac.roundcube.net/ticket/1487144

comment:4 Changed 4 years ago by fracmak

I've updated the pull request to the latest head:  https://github.com/jquery/jquery/pull/264

comment:5 Changed 4 years ago by dmethvin

  • Status changed from open to closed
  • Resolution set to fixed

Merged pull 300.

Note: See TracTickets for help on using tickets.