dry-rb / dry-inflector

Inflector for Ruby
https://dry-rb.org/gems/dry-inflector
MIT License
95 stars 15 forks source link

cache results #34

Closed dsisnero closed 3 years ago

dsisnero commented 3 years ago

Describe the bug

When tracing path through dry-system, the path kept on going through dry-inflector for looking up keys. Would it be possible to cache the result of first lookup so that this is fast?

To Reproduce

Provide detailed steps to reproduce, an executable script would be best.

Expected behavior

A clear and concise description of what you expected to happen.

My environment

solnic commented 3 years ago

We'll add optional caching eventually.

ps. in the future, please don't use issue trackers to ask questions - we have discourse.dry-rb.org for this type of communication