You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aot mode is very difficult to debug and maintain because it relies on creating a code string, transforming it with Sucrose and evaluating it at runtime
Aot mode should not be the default, it makes it super hard to debug issues because stack traces don’t point to any file, you instead have to debug the code generation code itself
For example currently there is a bug where throwing in the first line of an async generator handler crashes the server, I could not fix this issue in #742 because I would have to change at least 20 signature calls in the aot code generation without type safety and clear understanding of what branches get executed.
in my opinion speeding up Elysia by a few milliseconds by complicating 10x the whole codebase is not worth it. The only benefit of this feature are synthetic benchmarks, it does not improve real applications performance
What is the feature you are proposing to solve the problem?
Make aot false by default and deprecate it over time. Fix all the tests that currently fail with aot disabled
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
Aot mode is very difficult to debug and maintain because it relies on creating a code string, transforming it with Sucrose and evaluating it at runtime
Aot mode should not be the default, it makes it super hard to debug issues because stack traces don’t point to any file, you instead have to debug the code generation code itself
For example currently there is a bug where throwing in the first line of an async generator handler crashes the server, I could not fix this issue in #742 because I would have to change at least 20 signature calls in the aot code generation without type safety and clear understanding of what branches get executed.
in my opinion speeding up Elysia by a few milliseconds by complicating 10x the whole codebase is not worth it. The only benefit of this feature are synthetic benchmarks, it does not improve real applications performance
What is the feature you are proposing to solve the problem?
Make aot false by default and deprecate it over time. Fix all the tests that currently fail with aot disabled
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: