[ 
https://issues.apache.org/jira/browse/OAK-2389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated OAK-2389:
--------------------------------
    Attachment: OAK-2389-b.diff

Slightly different patch:
* Faster JsopBuilder.encode(String s) if no escape is needed but there are 
characters >= 127
* No need for constants 0000 - 001f
* Use "case" instead of "if / else if / else if" should be a tiny bit faster
* Slightly more tests for those cases

> issues with JsopBuilder.encode and .escape
> ------------------------------------------
>
>                 Key: OAK-2389
>                 URL: https://issues.apache.org/jira/browse/OAK-2389
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Julian Reschke
>         Attachments: OAK-2389-b.diff, OAK-2389.diff
>
>
> 1) escape() escapes many characters that do not need to be escaped (>127)
> 2) encode() does not encode many control characters that would need to be 
> escaped when read through a JSON parser.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to