Skip to content

Is a slight refactor welcome? #33

@benjie

Description

@benjie

Hey @bendrucker, thanks for your work on this project!

I've re-implemented the parse function in PostGraphile, with the following changes (roughly):

Would you like me to replicate these changes in a PR to postgres-interval? I'm pretty confident I can do it in a non-breaking way (it won't be a complete copy of the above code because I'll need to add milliseconds back in, at least).

The result of this change would be:

  • slightly better performance
  • slightly reduced memory usage
  • more linear code

If this is not of interest; feel free to close this issue 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions