Modify ↓
Ticket #7587 (closed enhancement: fixed)
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:3 Changed 2 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 2 years ago by fracmak
I've updated the pull request to the latest head: https://github.com/jquery/jquery/pull/264
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
