Questions tagged [heavy-computation]

Processor Oriented Computation

The act or process of computing involve excessive usage of processor and sometime required complex algorithm to compute.

24 questions
13
votes
3 answers

Best Practices For Heavy Computations in Javascript?

I am working on client side scripts and need to do heavy computations like pushing huge number of objects in an array, it causes JavaScript to stop response and browser hangs giving an alert: Is there any best practices or design patterns for…
Zaheer Ahmed
  • 28,160
  • 11
  • 74
  • 110
7
votes
4 answers

Taking heavy computation off the Android UI Thread

My Android app employs a particularly big computation which keeps crashing the system because it is on the UI thread in the Activity. I have little confidence in multithreading and so I want to get some tips on how to do it correctly. This is what I…
user485498
7
votes
1 answer

Storing and using a trained neural network

I am trying to develop a neural network to predict timeseries. As far as I have understood, I am training my neural network with a training set and validate it with a test set. When I am satisfied with my results, I can use my neural network to…
3
votes
8 answers

C# Performance - should I write the computation heavy methods in c++?

I am building a prototype for a quantitative library that does some signal analysis using image processing techniques. I built the initial prototype entirely in C#, but the performance is not as good as expected. Most of the computation is done…
thomas1234
  • 599
  • 3
  • 6
  • 15
2
votes
1 answer

Vanilla JS: show animation while doing computationally intensive tasks in the background

I have a simple sigma calculator that works very well, except a little hiccup when the user requests a large span of n. Below is an image: As shown in the image, the function is going to take a while to finish calculating the sum (I do it with a…
Lampe2020
  • 115
  • 1
  • 12
2
votes
2 answers

android threads: stopping a thread with heavy computation

I am doing some heavy computation in my android application. Since i dont want to block the UI-thread, I do the computation in a seperate WorkerThread, which extends Thread. This works fine. But i have trouble stopping the thread. The normal way to…
Tobias
  • 245
  • 3
  • 9
1
vote
4 answers

NSTimer sometimes freezes when app is doing heavy computation

I'd like to animate some loading points while the app is doing some computation in the background. I achieve this via an NSTimer: self.timer = [NSTimer scheduledTimerWithTimeInterval:0.3f target:self…
swalkner
  • 16,679
  • 31
  • 123
  • 210
1
vote
0 answers

Heavy Computation in Javascript

I am currently in the process of building a Finance library for Javascript(Browser and Node) One of the main features of the library is doing simulations with options, therefore there is a lot of computation that goes into generating the…
Jeff
  • 873
  • 2
  • 10
  • 16
1
vote
0 answers

What are best practices for Android heavy rendering

Questions What are the best practices for heavy rendering in Android views? Is the suggested approach is pointing in the right direction? What are the alternatives? Description My Android app scrolls through heavy rendered content. Rendering of…
mspnr
  • 416
  • 4
  • 12
1
vote
1 answer

F# / MailBoxProcessor is unresponsive to PostAndReply under nearly 100% load

I have a MailBoxProcessor, which does the following things: Main loop (type AsyncRunner: https://github.com/kkkmail/ClmFSharp/blob/master/Clm/ContGen/AsyncRun.fs#L257 – the line number may change as I keep updating the code). It generates some…
1
vote
1 answer

Heavy JavaScript computations block

I do (in JavaScript/jQuery) heavy computations. The problem is that these computations are blocking the UI thread and I (tried and) can't find a way to avoid this. Some requirements: I can't use webWorkers The computations must be on client side (I…
1
vote
0 answers

ipython notebook showing In [ ]

In the python notebook , after an expensive computation is done I get the following output : In [ ]:redas=heavytask(g,l=False) instead of In [45 ]: i.e with a line number. Earlier it showed In [ * ] then after refreshing the notebook it changed to…
stackit
  • 3,036
  • 9
  • 34
  • 62
1
vote
1 answer

Connection refused after connecting 75 clients to server

I had developed a server channel socket using below code: public class EchoServer { private static final int BUFFER_SIZE = 1024; private final static int DEFAULT_PORT = 9090; private long numMessages = 0; private long loopTime; private…
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
0
votes
0 answers

Elastic Search for Heavy Reads & Writes - Thoughts

We are planning to build a calendar application with Location-based Search Capabilities. We want to store the user availability and the geolocation in NoSQL Database for faster search. The search will be performed based on the location. We are…
nsarvesh
  • 37
  • 1
  • 2
  • 9
0
votes
1 answer

Flutter: How can I carry out resource intense background calculations without locking up the phone?

I have a puzzle game app. (https://play.google.com/store/apps/details?id=com.karolinadart.blackbox) When the player thinks they have solved the puzzle, they press the "This is my final answer" button, at which point the score is calculated. A new…
Karolina Hagegård
  • 1,180
  • 5
  • 26
1
2