godaddy / datastar

A robust and feature rich ODM for Cassandra.
MIT License
40 stars 12 forks source link

Memoize casing functions #28

Closed DullReferenceException closed 5 years ago

DullReferenceException commented 5 years ago

The CPU cost of camel/snake casing adds up, especially with large data sets. Since these operations are being repeatedly performed on the same column names, and this is a bound set of values being operated on, we can afford to memorize results forever.

scommisso commented 5 years ago

🔥 💯