Skip to content

Switch to therubyracer and general questions about what JS engine #21

Closed
@justin808

Description

@justin808
  1. I curious as to the purpose of eval vs. compile methods in the execJS?
  2. Any advice on what's going the be best performance for rendering react components server side?
  3. Here's how another project is doing this without webpack: https://github.com/reactjs/react-rails/tree/master/lib/react/server_rendering Anything right or wrong about what they are doing? Here's the docs on that: https://github.com/reactjs/react-rails#server-rendering
    Here's a discussion on performance: [testing] Execjs runtime benchmarks reactjs/react-rails#290

Summary of performance advice from react-rails:

Recommends: https://github.com/cowboyd/therubyracer

On MRI, use therubyracer for the best performance (see discussion)
On MRI, you'll get a deadlock with pool_size > 1
If you're using JRuby, you can increase pool_size to have real multi-threaded rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions