hetznercloud / hcloud-go

A Go library for the Hetzner Cloud API
https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud
MIT License
371 stars 45 forks source link

refactor: move regexp compilation outside function #485

Closed jooola closed 1 month ago

jooola commented 1 month ago

This improves the performances a bit.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.56%. Comparing base (756f605) to head (7bad6e8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #485 +/- ## ========================================== - Coverage 71.56% 71.56% -0.01% ========================================== Files 45 45 Lines 3904 3903 -1 ========================================== - Hits 2794 2793 -1 Misses 696 696 Partials 414 414 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.