Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.
1
vote
0answers
12 views
How to overcome network latency when using data as a service like Cloudant?
I just can't understand, no matter how good and scalable of Cloudant (data as a service), how one can overcome network latency issue?
Even the data center is located within the same country, 100ms is ...
5
votes
2answers
229 views
Buzzword for “performance-aware” software development
There seems to be an overabundance of buzzwords for software development styles and methodologies: Agile development, extreme programming, test-driven development, etc... well, is there any sort of ...
1
vote
2answers
117 views
Setter Validation can affect performance?
In a scenario where you use an ORM to map your entities to the DB and you have setter validations (nullable, date lower than today validation, etc), every time the ORM gets a result, it will pass into ...
2
votes
2answers
174 views
Implementing set of processes in a stored procedure or through the code?
I want to know what's the suitable method to implement the following case (best practice).
If i make a set of processes like this:
select data from set of DB tables.
loop on the selected result.
...
1
vote
1answer
85 views
Will JVisualVM degrade application performance?
I have doubts in JVisual VM profiler tool related to performance. I have requirement to implement a JVM Monitoring tool for my enterpise java application. I have gone through some profiling tools in ...
-1
votes
2answers
74 views
Applications affected by memory performance [closed]
I'm writing a paper on the topic of applications affected more by memory performance than processor performance. I've got a lot written regarding the gap between the two, however I can't seem to find ...
0
votes
2answers
146 views
Perfomance of 8 bit operations on 64 bit architechture
I am usually a Python / Database programmer, and I am considering using C for a problem.
I have a set of sequences, 8 characters long with 4 possible characters. My problem involves combining sets of ...
1
vote
3answers
192 views
Storing a value vs calling reference for repeated use in Java
I have an old habit of avoiding calling references multiple times, both for easier to read/maintain code, and for possible efficiency. But I'm wondering which is more efficient (memory, performance, ...
2
votes
4answers
315 views
Database is performing slow, even all the tables are having normalization
One of the interviewers asked me this question:
Tables are created with appropriate normalization rules, However the database is performing slow. [Ie.: The select, insert statements are taking ...
2
votes
3answers
272 views
What are the reasons for great performance differences running the same program?
I'm no computer scientist so please bear with me.
Lately I wrote a python program that has to perform some expensive spatial searches while holding lot's of data in memory. I tried to improve the ...
3
votes
2answers
153 views
How relevant are “Requests per second” benchmarks?
Whenever a new framework is released it is a given that someone somewhere will benchmark it against other available solutions.
One interesting benchmark is the "Requests per second" benchmark. For ...
2
votes
2answers
94 views
Recommended guidelines for declaring bash/sh variables
I have been programming in BASH for a while now and the scripts that I write are starting to get more complicated.
I realized that I started to bring in some habits from C/C++ and wanted to get ...
7
votes
4answers
348 views
How to find bottlenecks in an application? [duplicate]
I'm building an application with lots of components, a lot of which are third-party so I only know what I can get from their documentation.
From time to time, by pure luck, I find out one of these ...
3
votes
5answers
283 views
Should We Code for Performance or Stability? [duplicate]
There is a point in time where you make design choices and debate them with management. In my case I have to debate my positions and design choices with senior management but it is frustrating that ...
3
votes
2answers
320 views
CA1819: Properties should not return arrays. Does this happen only with arrays? If yes, why?
I have a question about CA1819 msdn performance warning.
The rule is: Arrays returned by properties are not write-protected, even if the property is read-only. To keep the array tamper-proof, the ...
5
votes
4answers
330 views
Performance related doubt in Java with Hibernate
Suppose in some ORM based project (say Hibernate) I am trying to fetch only few columns rather then the whole Object with may be more than 20 attributes. I am writing HQL like "select attr1, attr2 ...
8
votes
4answers
1k views
Is try-finally expensive
In case of code where you have to do a resource cleanup before exiting a function, is there a major performance difference between these 2 ways of doing it.
Cleaning the resource before every return ...
0
votes
2answers
386 views
Is rewriting some java code to c++ using jni to improve performance, a good idea? [closed]
I've tried rewriting some java functions in c++ and called them using jni. I observed that it takes longer time to execute the native c++ functions as compared to java function, due to jni overhead.
...
0
votes
1answer
120 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
150 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 ...
37
votes
12answers
2k 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
106 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
217 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
146 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
899 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
184 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
164 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
143 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
93 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
133 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 ...