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

Alex Parvulescu updated OAK-924:
--------------------------------

    Attachment: OAK-924-v0.patch

attaching a rough version of the first bits.
I had a lot more trouble moving the default ns into the initial content than 
expected (hit some encoding issues).

there are some weird failures under oak-jcr, after a point all tests start 
failing with " OakName0001: Invalid namespace prefix: jcr", but running each 
one individually doesn't fail so I'm not yet sure what is going on.

included so far:
 - removed the hardcoded ns map
 - commit hook (the NamespaceValidator which now needs a rename) to update the 
reverse mapping and dedicated properties for prefixes and uris

todo
 - oak-jcr tests don't pass :(
 - remove the init method


feedback needed!

> Optimize namespace lookups
> --------------------------
>
>                 Key: OAK-924
>                 URL: https://issues.apache.org/jira/browse/OAK-924
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core, jcr
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>              Labels: performance
>         Attachments: OAK-924-bench.patch, OAK-924-v0.patch
>
>
> The current namespace handling code does a lot of repetitive work, which 
> shows up in hotspots like XML imports and Sling's namespace mapping code.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to