Questions tagged [highperformance]

4 questions
0
votes
0 answers

Queue data structure with rate limiting and aggregation

I'm looking for a queue data structure which supports the following: Given items with (ID, value) it should contain only the newest values for a given ID. E.g. if there is an item with ID 5 and value "a" in the queue not yet consumed and the new…
Urb
  • 1
0
votes
1 answer

What is the best approach for rapid sound playback on iOS?

I have a UI that allows someone to move a dial and the dial 'snaps' to each 'mark' on the dial. I want to add sound to this and I've made a very short 'click' sound that is a fraction of a second. I don't want to restrict how fast the user can…
0
votes
2 answers

Create and fill an array with an enumeration from 1 to n in the fastest method possible

I've the following code: int n = 150000; int[] myArray = Enumerable.Range(1, n).ToArray(); So I want myArray contains an enumeration like 1,2,3,4,etc... Of course the size of the array should be variable. The thing is this is called millions of…
Leandro Bardelli
  • 10,561
  • 15
  • 79
  • 116
-1
votes
0 answers

Overhead in parallel tasks in Python

I have a coordinate array of shape X.shape = (100000, 1000) and a property array of shape P.shape = (100000, 1000). I wish to calculate the distance dependent autocorrelation function of property P which I explain below. First I remind that the…