Skip to content

Improve server rendering performance with string templates #5176

@jialunguo

Description

@jialunguo

Versions

Vue 2.0.1
vue-server-renderer 2.0.1
Windows 7

What is Expected?

vue-server-renderer faster.
server-render is just for rendering html string, reusing code with browser side maybe easier to maintenance, but still cause lower performance which can't be ignore, especially using it with giant number of users(qq qzone hybrid website).

What is actually happening?

Using virtual dom to render html string on server side will cost more time which is about 10-20 times than traditional template engine without using virtual dom.

Reproduction repository

I write a small js called jscHelper to convert vue virtual dom tree to normal render function for improving performance.
But the compatibility is not good.
So I hope there will be an original way to solving it.
https://github.com/jialunguo/vue-server-render-jscHelper.git

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions