jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

Issue#74: Improved performance by the factor of 10

Open atlasgurus opened this issue 7 years ago • 12 comments

….b.c

The change is simple caching of the parse(), normalize() and strigify() functions

atlasgurus avatar Sep 08 '17 01:09 atlasgurus

Fixed issues, will reopen.

atlasgurus avatar Sep 08 '17 19:09 atlasgurus

What's the status of this, other than "in limbo"?

katanacrimson avatar Feb 05 '18 14:02 katanacrimson

I created a pool request. The implementation was working well and my customer (FireEye, Inc.) is already using it. Just need to merge it.

On Mon, Feb 5, 2018 at 6:22 AM, Damian Bushong [email protected] wrote:

What's the status of this, other than "in limbo"?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/dchester/jsonpath/pull/75#issuecomment-363098495, or mute the thread https://github.com/notifications/unsubscribe-auth/ALcSNWHn6_DKXHeoVyJzfQfx-dXr-Gydks5tRw7DgaJpZM4PQkyt .

-- Vassili Gorshkov Atlas Consultants Group, Inc.

atlasgurus avatar Feb 05 '18 16:02 atlasgurus

Meant that more for the maintainers, because it's just been sitting here without comment. :)

katanacrimson avatar Feb 05 '18 17:02 katanacrimson

Dear maintainer, is it possible to accept this pull-request ?

timo-klarshift avatar Mar 07 '18 18:03 timo-klarshift

Dear maintainer, can you PLEASE merge this :)

PhilipJohnBasile avatar Mar 09 '18 19:03 PhilipJohnBasile

Thanks, I'll take a look here. There may be some trade-offs to consider around memory usage, and I'd rather not use memoize directly from underscore, since that makes the front-end build trickier. But let's see what we can do...

dchester avatar Mar 09 '18 20:03 dchester

Thank you :) Our team is waiting with our breaths held :)

PhilipJohnBasile avatar Mar 09 '18 20:03 PhilipJohnBasile

Can we exhale yet @dchester ?

PhilipJohnBasile avatar Mar 10 '18 02:03 PhilipJohnBasile

@dchester any updates on this? Can we merge this in please?

jlutzhbo avatar Aug 26 '19 22:08 jlutzhbo

We just pushed a similar commit to our fork (available on npm): https://github.com/DevNullProd/jsonpath-sandbox/commit/f62ddee33aee04c2177bdaa4938bd865183f461c

movitto avatar May 30 '20 02:05 movitto

We pushed a follow on patch allowing the user to set a timeout to expire the cache. Thus the memoized values will not grow in memory indefinitely.

https://github.com/DevNullProd/jsonpath-sandbox/commit/dffaa749885e9b039e61d91230c9bc76c425bb75

movitto avatar Jun 02 '20 18:06 movitto