Home > Software engineering > A large number of data mapping, how to improve the speed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
A large number of data mapping, how to improve the speed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Time:10-08
Millions of points in the array, line drawing, to zoom, zoom, how can you improve the drawing speed??????? For conventional resolution of curve shows that when the pixel points more than resolution, there are a lot of curve points are completely unable to express, if all mapped will slowly, can you take a large number of data points feature points in the paint, the principle is not affect the general form of the curve as far as possible, how to implement? Premise is not influence my amplification, narrow curve function!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Had better have the exact code thank you
CodePudding user response:
Only in memory operation is the fastest, as for the millions of points, I didn't dare to think of what it will be, but I can give you a memory mapping to explicitly on the big picture, for example, may be helpful to you: http://download.csdn.net/detail/veron_04/2368159
CodePudding user response:
Vb draw millions of points also has more than ten seconds, but the millions of points in the curve of the crowded there was what features in one screen at a time, into a surface, Each drawing should be painted window can display only points, which is no more than window ScaleWidth, as to zoom in, simply change the value ScaleWidth, needn't you deal with.
CodePudding user response:
1. A large increase of CPU and GPU auditing; 2. A large number of additional memory and memory on the number of G.
CodePudding user response:
In addition, when want to zoom in and out does not affect image quality, have to vector graphics.
CodePudding user response:
, according to the classification, according to the narrow details don't zoom in the local details
CodePudding user response:
Which master can say specific point? Had better have the code, thank you. Data such as Time (hours) temperature 0.00027778 16.381 0.00055556 17.488 0.00083333 19.560 0.00111111 25.624 0.00138889 36.682 0.00166667 23.740 0.00194444 16.797 . One million lines in the text, how to improve the speed, draw the screen resolution is limited, there must be a lot of repeated points, how to painting not only repeat points, so that you can not change the configuration of graphics, but how to implement and fast to risk
CodePudding user response:
So large amount of data, characteristic data is the key, rather than the whole picture.
According to the LS to data, I should consider to do so. About 1 second one data, so first consider the division of abscissa, abscissa in 1 minute. Ten little is every six data average point. Painted with about 1000 small is 100 minutes of a data graph, basic can coherent rise, and real data.
If afraid of data distortion, can join the zoom function. All in all, before drawing automatically calculate the points need to redraw the screen, and then evaluated draw points, than all the painted on high speed, a sex strong,
Ls said to the other data from the text, there is some trouble to handle, less convenient database,
CodePudding user response:
I am a beginner, I hope you teach, take characteristics data is best what is the fastest algorithm, thanks? Write to me yourself in more detail
CodePudding user response:
Can be divided into several segments such as data according to the time (number must be less than can display points), each paragraph take its average (or median) as the representative of the segment (features, without extremum, because there will be a lot of extremum in a), draw curve, which can keep basic graphic feature, you don't need to struggle with the top or bottom graphic will appear some time, think about the top or bottom from millions of points who can find? Even want to see more details can be obtained by magnifying the graphics,
Graphic enlarge and narrow: drawn by the above method, only need to change the length of the segment (such as to an hour a day, one second to ten minutes) graphic amplification can be realized with narrow,
CodePudding user response:
I want to come to feature points according to the size of the temperature data and how to achieve this? What is the good method? Thank you for your advice
CodePudding user response:
I think the building as a beginners don't plug too many things at once. Or go back and achieve the goal of the initial first: Suppose your Picture control width is 1000 pixels, how to the most efficient to millions of data Dallas? In fact you also see out, so the dense data, even no connection between point and point is irrelevant. And you must also found, to put all data painted is meaningless. So what's left is how to select data.
The VB and C, the relationship is not large, is pure mathematics or thinking. So I can work on it ourselves.