functionalDependencyCalculator icon indicating copy to clipboard operation
functionalDependencyCalculator copied to clipboard

Improve Performance

Open thtTNT opened this issue 2 years ago • 3 comments

I try to remove the latex compiler to improve the performance. However, even though it reduces a huge amount of dom, but there is still a performance issue when the result grows like 10,000.

To solve this problem, I use a virtual scroller and worker to prevent the calculate and latex compiling block the Main Thread(UI). @arjo129

thtTNT avatar Nov 24 '23 13:11 thtTNT

Yeah I don't expect us to be able to solve 100,000 F.D.s it'll take me some time to work through this code. (It's been a while since I touched this repo). Like I said this was a hack (for my homework lol).

arjo129 avatar Nov 25 '23 06:11 arjo129

If you're interested one way to further improve performance is to use web workers to do the calculations in a background thread and then send data to the main rendering thread,

arjo129 avatar Nov 25 '23 06:11 arjo129

If you're interested one way to further improve performance is to use web workers to do the calculations in a background thread and then send data to the main rendering thread,

Hahaha, I found this project just because of my homework. So in our course, we will reach 10,000 possible f.d. after calculating, So maybe the requirement of "10,000 possible f.d. output" is not that uncommon. In this commit, I have already used workers to improve performance, you can check it.

thtTNT avatar Nov 25 '23 11:11 thtTNT