Skip to content

Bug report: JQ operations are slow as input grows large #2232

@W-Floyd

Description

@W-Floyd

Describe the bug
JQ operations are slow when input becomes large

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  1. Create recipe with JQ step, where the query is something simple (length, for example)
  2. Use contents of 512KB.json as input
  3. Observe long time to bake

Expected behaviour
Baking should take a short amount of time

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (if relevant, please complete the following information):

  • OS: MacOS
  • Browser: Firefox 148.0
  • CyberChef version: Latest (3f91df2)

Additional context
I need to check if the prior JQ wasm implementation (replaced in #2223 ) was faster

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions