3 ms·
"It's talking about optimizing something that takes less than 1% of the vast majority of an application's cycles." What takes the other 99%? Did you measure?
by jeffdavis 15y ago
"It's talking about optimizing something that takes less than 1% of the vast majority of an application's cycles."
What takes the other 99%? Did you measure?
- scriby 15y agoYes. At least in my own apps. Model instantiation being a bottle neck practically implies that you generate models in a tight loop and do nothing else with them, such as persisting them.
- bricestacey 15y agoBut, people do precisely that. I was working with parsing log files and converting each row to a Mongoid object took forever. It was in a tight loop and did nothing but persist it. So, I had to drop into the Ruby Mongo driver, avoiding the ORM altogether.
- jeffdavis 15y agoSo, what took the other 99% if not model instantiation?