juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
12.63k stars 1.36k forks source link

[PERF] Make encryption/decryption operations concurrent while struct constructions #1631

Open NishantJoshi00 opened 1 year ago

NishantJoshi00 commented 1 year ago

Description

While constructing domain types for storage models we are performing encryption/decryption of the fields sequentially while constructing the struct. A performance improvement that we could introduce is where we perform those operations concurrently.

Optimizable Locations

Suggestions

We can consider using a pre-build library similar to conquer_struct or re-implement a similar behaviour for our use case

NavinShrinivas commented 1 year ago

Hey, I'd like to work on this!