Strech / avrora

A convenient Elixir library to work with Avro messages, schemas and Confluent® Schema Registry
https://hexdocs.pm/avrora
MIT License
98 stars 33 forks source link

Reduce amount of used `ets` tables #123

Open Strech opened 3 months ago

Strech commented 3 months ago

In the current situation, the number of ets tables is proportional to the number of schemas. Every time we parse nested schema we create a new ets schema that goes into recursion.

Despite that fact we already have a cache on top of the schema resolution which is a single place for all schemas after they are resolved we don't leverage it.

It will allow us to reduce coding in related issue #115

TODO