memcode icon indicating copy to clipboard operation
memcode copied to clipboard

Flash card editing slowdown with increasing course size

Open Wehzie opened this issue 2 years ago • 2 comments

Hello :)

Building a course at around 60 flash cards I noticed a delay for characters appearing when editing flash cards.

The course is heavy in the use of KaTeX formulas and also contains around 15 images in total. The slowdown has gotten worse now that the course is at 100 cards. Page loading and other functions are unaffected and feel instant. This is specifically about text appearing delayed while typing into existing flash card fields. There is no slowdown when creating a new flash card. The slowdown seems to affect Firefox more than Chromium but is felt on both.

Wehzie avatar Oct 27 '21 16:10 Wehzie

Hi!

The images are not to blame (unless they are stuck with the loading icon, happens if you save the flashcard too fast). Formulas might be to blame.

Memcode gets slow on Firefox for me for unclear reason occasionally, same happens with other sites (e.g. brick.do), and both get resolved on reload.

Could you send me the link to the course so that I see whether formulas affect the performance?

lakesare avatar Oct 28 '21 15:10 lakesare

The course is available at https://www.memcode.com/courses/5052. I haven't had problems with images loading. Page reload doesn't solve the issue for me, it occurs consistently.

This behavior occurs on a laptop without a dedicated graphics card. Hardware acceleration enabled. Firefox Version 93.0 (64-Bit) packaged as Snap for Ubuntu.

On Safari via iOS there is almost no slowdown.

Wehzie avatar Oct 28 '21 15:10 Wehzie