IBM / JSONata4Java

Open Source Java version of JSONata
Apache License 2.0
91 stars 38 forks source link

Parent op perf #222

Closed bluemel closed 1 year ago

bluemel commented 1 year ago

Hi Nat,

I did a little reasearch if I could / should improve the performance of the parent operator and found out:

However I'd recommend to merge my experiments (test code only) here to master without building a new release because it is only test code change and small refactoring in the production code.

Besides additional tests I've touched also slightly 2 production code classes:

Generally I'd raise the question if we have any code format guidelines for this project? If not maybe we should think about introducing some uniform format to the whole code base. I've made good experiences with that also with heterogenious teams.

wnmills3 commented 1 year ago

I checked in a code formatter for Ecliplse in JSONata4Java/JSONata4Java/JSONata4JavaFormatter.xml -- you set it in Eclipse / Preferences / Java / Code Style / Formatter (import it). You can then reformat code using menu / keys... If you want to change the default settings go ahead.