Is calling a function in OOP slow or is it the overhead?


This question already has an answer here:


You are touching the very old debate between making a one large query to get your data, or looping over many smaller ones to receive them. And the answer lies in specifics of implementations. In some cases it is faster to call that one function over and over, while other times it will just kill your performance. The "overhead" from just calling a function over and over is pretty minimal, it's the "guts" of it that matter.

Need Your Help

How to redirect from view in sinatra

ruby-on-rails ruby redirect sinatra link-to

I need to make a link in haml view that will redirect to another page on clik. In rails I could use helper link_to signup_url, 'Sign up!', but I don't know how to make it in sinatra. So, can anyone...

How to upload a file temporarily in Rails 3?

ruby ruby-on-rails-3 file-upload csv paperclip

I'm creating CSV-upload functionality for a site of mine.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.