Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.
0
votes
1answer
96 views
Will having ClassA extend ClassB slow down my runtime performance compared to having classC which contains all the members of ClassC?
I have a class with a lot of methods. I would like to group similar methods together in their own class, but all of the methods need to extend another class, ClassC. So I was thinking of having ...
2
votes
1answer
54 views
best way to store data from ajax call
I am writing a web-application in which I am retrieving data's from server through AJAX requests and the generate HTML content dynamically.
I have some data to load, generate HTML from it and append ...
34
votes
11answers
1k views
Documentation in OOP should avoid specifying whether or not a “getter” performs any computation?
My school's CS program avoids any mention of object oriented programming, so I've been doing some reading on my own to supplement it -- specifically, Object Oriented Software Construction by Bertrand ...
2
votes
1answer
95 views
Is doing some work for credit worthwhile?
Not sure how to title this as it's not just about that. But suppose that there is a software like .NET BCL, and you notice some places where you can make things much faster. It's not a great example ...
3
votes
2answers
183 views
Methods to identify and resolve memory leaks in the JVM
As the data is migrated via the object level, there has been a slow upwards trend in memory usage. I can see the periodic gc activity, but the memory trend is still going up slowly. I have currently ...
1
vote
2answers
118 views
How fast should a Python factoring script be?
Just how efficient is "good enough" for all intents and purposes? I wrote a script to simply list off all numbers that divide into an input, x, as pairs (i, n//i) and was just curious how efficient I ...
8
votes
3answers
679 views
Java Heap Allocation Faster than C++
I already posted this question on SO and it did ok. It was unfortunately closed though(only needs one vote to reopen) but someone suggested I post it on here as it is a better fit so the following is ...
0
votes
6answers
135 views
Benchmark of asynchronous code
Asynchronous programming seems to be getting quite popular these days. One of the most quoted advantages is performance gain from removing operations that block threads. But I also saw people saying ...
0
votes
2answers
142 views
Add javascript to all pages (for caching), or only to the pages that require the scripts (for a smaller page size)?
I'm using bits of javascript on my website for an image gallery, smooth scrolling, etc. These scripts are not used on every page (not every page has an image gallery for example). However, the scripts ...
0
votes
2answers
115 views
Is this a good measure of PHP script usage of the system?
I've been trying to see a way to get a measure of how much a PHP script costs of memory to the server. Well, I've found some solutions out there that requires some software to make tests and even ...
-6
votes
1answer
86 views
Memcopies in JavaScript? [closed]
A fellow C-Developer, who works with embedded-PHP told me about how PHP constantly makes memcopies in the background and was like "That's crazy, but most scripting languages do this if you aren't ...
1
vote
1answer
108 views
Improving the efficiency of containers with dynamically allocated objects
This is not strictly related to C++ but its type system serves to illustrate the problem well.
Assume:
We have a generic template Container<T> (such as a std::vector<T>) which stores an ...
2
votes
2answers
105 views
Will object reuse optimize this often-called function?
Suppose I have a function that I need to call a lot, maybe a few thousand times on every mouse down or mouse move. It uses an instance of a function (class), called Transform:
function func1(a, b, c) ...
6
votes
6answers
207 views
When to start thinking about scalability?
I'm having a funny but also terrible problem. I'm about to launch a new (iPhone) app. It's a turn-based multiplayer game running on my own custom backend. But I'm afraid to launch.
For some reason, I ...
1
vote
2answers
165 views
When to really focus on performance?
We've just finishing up the first release of a database driven web application, which is now in regression testing. The application has an advanced search with many different filtering criteria. When ...