Skip to content

Client components are very slow and cause stack overflow  #3264

@aminya

Description

@aminya

What version of Hono are you using?

4.5.4

What runtime/platform is your app running on?

Chrome

What steps can reproduce the bug?

Here's the full benchmark reproduction.
krausest/js-framework-benchmark#1723

Hono is much slower than Solidjs, the reference fast framework. The current result makes Hono the slowest JS framework. Up to 100 times slower in a medium number of components, and the browser stack overflows when the number of components is high (benchmarks fail).

image

The profiler confirms the inefficient implementation of client components in Hono.

image

What is the expected behavior?

Have an acceptable performance, at least on par with React.

https://krausest.github.io/js-framework-benchmark/2024/table_chrome_127.0.6533.72.html

What do you see instead?

Use other frameworks like Solidjs for client components.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions