-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the switch
object is slow because of recursion
#3058
Comments
@maxonfjvipon can you help a bit, did I understand correctly how this implementation works?
Here we're got an I'm not sure that I can say what happens here Object |
@l3r8yJ you're right. But |
switch
objectswitch
object is slow because of recursion
Current implementation of
switch
object usestuple.at
object which is convenient for retrieval object by index but quite heavy.Instead we can implement some recursive algorithm that can just do
cases.head
andcases.tail
instead. Something similar to #3048 but in EOThe text was updated successfully, but these errors were encountered: