Is there an advantage to running JRuby if you don't know any Java?

后端 未结 5 713
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 00:46

I\'ve heard great things about JRuby and I know you can run it without knowing any Java. My development skills are strong, Java is just not one of the tools I know. It\'s a mass

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-04 01:17

    I would modify what Peter said slightly. JRuby may use more memory compared to standard Ruby, but that's usually because you're doing the work in a single process what would take several processes with Ruby.

    You should try the Rails.threadsafe! option with a single JRuby runtime (for example, the Trinidad gem with the --threadsafe option). We've heard several stories where it gives you great performance and low memory usage, while leveraging multiple CPU cores with a single process.

提交回复
热议问题