TheThingsArchive / ttn

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

Compile regex only once #783

Closed adriansmares closed 3 years ago

adriansmares commented 3 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