Cripplingly slow performance

Swulf shared this problem 9 years ago
Answered

Hello,


Please see the attached file.


It responds very, very slowly on my machine :( - for example, if the point A1 is moved. Any idea why? I get bad performance under both G4 and G5. Basically as an interactive demo this is unusable.


Swulf


Running Windows 7 64 bit.

Version6.1.7601 Service Pack 1 Build 7601

ProcessorIntel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz, 1734 Mhz, 4 Core(s), 8 Logical Processor(s)

Installed Physical Memory (RAM)16.0 GB

Available Physical Memory13.0 GB


GeoGebra 4.0.20.0 (Java 1.6.0_29, 494MB, MPReduce .016) 14 January 2012

https://ggbm.at/553427

Comments (1)

photo
1

Hi,


calculating the intersections between your (not very simple) function and the perpendicular lines is very expensive. Check out the attached file for a much quicker version. I used an external tool (wolframalpha) to find the x-coordinates of the intersection points between your function and lines of the form a*x+b, added the formula for that coordinates as functions of a and b (called r_1, r_2). There are a few things to take care of if you want to reproduce your original construction (ie discarding intersection points out of range, there are no intersection points if the line between A1 and A2 is parallel to the x-axis), but those should have no effect on performance.


cheers,

Florian

https://ggbm.at/553429

© 2021 International GeoGebra Institute