Skip to content

Computing Ion hash is slow for larger Ion inputs #21

@desaikd

Description

@desaikd

Reference issue: awslabs/amazon-qldb-driver-python#67

For the following document, ion_hash takes ~2.5 ms and native hash takes < 0.01 ms.

$ion_1_0 { id:"0001", type:"donut", name:"Cake", ppu:0.55, batters:{ batter:[ { id:"1001", type:"Regular" }, { id:"1002", type:"Chocolate" }, { id:"1003", type:"Blueberry" }, { id:"1004", type:"Devil's Food" } ] }, topping:[ { id:"5001", type:"None" }, { id:"5002", type:"Glazed" }, { id:"5005", type:"Sugar" }, { id:"5007", type:"Powdered Sugar" }, { id:"5006", type:"Chocolate with Sprinkles" }, { id:"5003", type:"Chocolate" }, { id:"5004", type:"Maple" } ] }

ion_hash function internally uses the reader and writer from ion-python implementation, it might be worth trying out new C extension work around ion-python which improves performance of reader and writer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions