For questions pertaining to the measurement or improvement of code efficiency.
0
votes
2answers
39 views
File Creation/Deletion Efficiency?
I'm writing code that occasionally needs to write data to a file, then send that file to another program for analysis, and repeat the process.
The format of the file is very rigid; headers are ...
1
vote
1answer
17 views
The time complexity of the leader-follower algorithm?
I'm trying to understand the complexity of the Leader-Follower algorithm. Here is the worst case scenario of the algorithm:
public class ScalabilityTest {
public static void main(String[] args) {
...
1
vote
0answers
7 views
android systrace - cause of performTraversals recursion, long egl buffer swap times
I am measuring the performance of my app with systrace on a non-rooted Nexus 4 on Android 4.2.2. I'm seeing a few things in the reports that don't make sense to me and I'm wondering if they might be ...
0
votes
0answers
9 views
Jmeter, jenkins and blazemeter to rag, pass/fail and rank the performance of a build
I am looking to use Blazemeter, JMeter and Jenkins together. I have set up a JMeter test that allows me to use Blazemeter to view the results online.
The plan is, to trigger the JMeter tests to run ...
0
votes
1answer
12 views
Faster way to calculate the number of shortest paths a vertex belongs to using Networkx
I am considering that the Stress of a vertex i is the number of shortest paths between all pairs of vertices that i belongs to.
I am trying to calculate it using Networkx, I've made in three ways so ...
0
votes
2answers
26 views
remove all flash objects without overloading browser
I'm loading on my site third party content. Now I'm trying to remove all flash objects from my page using header script code. The problem is that everything must load in browser and i can only remove ...
0
votes
1answer
8 views
How do I work around the N+1 issue with one-to-one mapping in NHibernate?
I have a Task entity which has a preceding and following task:
namespace OneToOneIssue.Domain
{
public class Task
{
public virtual Guid Id { get; set; }
public virtual string ...
0
votes
0answers
5 views
MVC 3 with IE, poor bundle performance
We have deployed an MVC 3 website on an IIS6 box.
Everything runs fine, but the performance is abysmal.
Can anyone help me understand
why am I getting 20 second response times to get a script ...
1
vote
1answer
17 views
XSL Transformations on large files
I am having XML which I need to process and return it in a different format. I used XSLT for the same.
I read that most XSLT Processors construct a tree of the input document in memory for the ...
0
votes
0answers
9 views
XCode profiler: why my phonegap page is so slow
I'm developping an iOS application with Phonegap 2.6.
On a specific page, when I click on a link:
<a class="level-{{lvl}}" ...
0
votes
2answers
40 views
OK to establish multiple data contexts?
Given the following code:
public static void SomeLoop()
{
using(var db = new ArcadeContext())
{
var changeRecs = db.ArcadeGameRanks.Where(c => c.Date == today);
foreach ...
0
votes
0answers
8 views
Android: programmatically invoke nDrawDisplayList
My, rather complex, application has two or three lags of about 500ms, which TraceView shows to be in GLES20Canvas.nDrawDisplayList. These lags only occur once when doing certain steps, after that ...
0
votes
3answers
66 views
Android , How to close the application
I am new to android. I am making an application. I have created an exit button in every activity for exiting my application, but I do not know how to kill my application when using the exit button.
I ...
-3
votes
8answers
57 views
SQL query takes very very long, is it faulty or inefficient? [closed]
I have a database table where I want to select all rows for which there is a row with the same field1 and field2=5. I made the following SQL query:
SELECT * FROM `table`
WHERE `field1` IN (SELECT ...
1
vote
2answers
29 views
SQL sumarize first x rows
I have a SQL result like this:
name | points
------+-------
Joe | 2
Joe | 5
Joe | 4
Joe | 1
Each row represents how many points Joe received per event.
Joe has some basic budget, let's ...