Skip to content

Slowness in Temple::Filter#dispatcher #124

@stanhu

Description

@stanhu

From https://github.com/k0kubun/hamlit/issues/139, I noticed that it took 2 seconds to compile one of our Rails templates, with much of the time spent looking up Kernel.class in Temple::Filter#dispatcher:

return replace_dispatcher(exp) if self.class != #{self.class}
:

image

I'm not quite sure what this code is doing. Is there a way we can optimize this out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions