gukoff / dtparse

Fast datetime parser for Python written in Rust
MIT License
74 stars 2 forks source link

Use borrowed instead of owned string arguments #5

Closed blyxxyz closed 3 years ago

blyxxyz commented 3 years ago

This seems to speed it up about 10% because it avoids copying the strings.

gukoff commented 3 years ago

Very good!

The median run time to parse '%Y-%m-%dT%H:%M:%S' decreased from 1500ns to 1250ns on my machine.

Thanks!