TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
463 stars 276 forks source link

Compile regex only once #783

Closed adriansmares closed 4 years ago

adriansmares commented 4 years ago

Summary

This quickfix removes regex compilation on HEX decoding and data rate decoding. This is on the very hot path of networkserver, handler and broker.

Changes

Testing

Unit tests.

Notes for Reviewers

image networkserver hot-path before

image networkserver hot-path after

Checklist