fotinakis / jsonapi-serializers

Pure Ruby readonly serializers for the JSON:API spec.
MIT License
413 stars 91 forks source link

Add DynamicProxyObject to fix time-consuming "getter"-methods #112

Open wuarmin opened 6 years ago

wuarmin commented 6 years ago

Hello ;) What is your opinion on my proposal?

It solves huge performance issues for us, because we are dealing with objects with slow and unchangeable getter-methods.

We had a conversation at #99.

Thank you for your feedback.

wuarmin commented 6 years ago

@krainboltgreene thank you for your review. I'll address your proposals.

krainboltgreene commented 6 years ago

@wuarmin FWIW I don't envy your task! Cache-level optimizations are hard and can be unpredictable at the library level.