NOAA-OWP / t-route

Tree based hydrologic and hydraulic routing
Other
44 stars 50 forks source link

speeding up Parquet_output function by vectorizing #816

Closed AminTorabi-NOAA closed 3 months ago

AminTorabi-NOAA commented 3 months ago

Reworking a _parquet_output_format_converter function to speeding it up by vectorizing and using numpy array. Previously it was taking around 50 sec. Can see in below picture. image

But by vectorizing it. It improved to 1 second. image

The result is also checked its the same. Original function output: image

Updated function output: image

Additions

-

Removals

-

Changes

-

Testing

1.

Screenshots

Notes

-

Todos

-

Checklist

Testing checklist

Target Environment support

Accessibility

Other