elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.36k stars 210 forks source link

Use persistent_term for cowboy dispatch #363

Closed v0idpwn closed 2 months ago

v0idpwn commented 2 months ago

Avoids unnecessary copying, which improves performance when there's a significant number of routes. Little or no impact for when the dispatching table is small.

Requires OTP 21.2. Since the library requires Elixir ~> 1.12, it already requries OTP 22+.