hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.29k stars 284 forks source link

Explore how to limit the amount of time we spend compiling a Hedy program #461

Closed fpereiro closed 3 years ago

fpereiro commented 3 years ago

Currently, a large program (or a hard to parse program) can block all processing within the same thread for all other users. It'd be great to explore how we can limit this to a fixed amount of time. This can improve performance and mitigate potential DDoS through execution of programs.

rix0rrr commented 3 years ago

While this is true, I wouldn't invest too much time into this yet. I feel we don't have definitive proof yet to show that the parsing is really the reason the server goes down sometime.

Let's wait for the details of the new logging to come in to see if we can tease out the actual bottlenecks a bit better.

fpereiro commented 3 years ago

@rix0rrr understood, I'll close this now and wait until we have a clearer view of performance bottlenecks.