Bug Tracker

Modify

Ticket #7587 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 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:

Description

$.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 3 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 3 years ago by anonymous

Please, make a decission on this for 1.5.1.

comment:3 Changed 3 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 3 years ago by fracmak

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

comment:5 Changed 3 years ago by dmethvin

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

Merged pull 300.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.