Here’s an example I ran into that I found surprising. It involves shading a region under a curve to demonstrate probabilities of continuous functions, but there was a slightly noticeable difference in speed based on whether I created the function within the tag or within a block, and then referenced the function within the graph:
Most of the activities that came to mind have already sped up considerably and only take a couple of seconds now, including the Riemann sum calculator (though I did cheat and not graph distinct rectangles when n>29) and an animated one.
The one I thought to check that still seems slow to load is this one with labeling the unit circle: Doenet
Thanks for the report, Jason. I was able to fix your function-evaluation slowness problem and David’s referenced function slowness. Those fixes will eventually show up in version 0.8dev, though I don’t recommend using that in the classroom.
I don’t yet have a fix for this, but one workaround is to avoid a reference directly to the point $P, but instead grab the coordinates via $P.coords. For example, make your comparisons $P.coords=$points[$ka].coords. (There is a flaw where referencing $P is copying all the constraints over and over again.)