如何在Node.js和JXcore之间进行选择? [英] How to choose between Node.js and JXcore?

查看:128
本文介绍了如何在Node.js和JXcore之间进行选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JXcore似乎是改进了Node.js.检查这个精心设计的报价:

JXcore seems to be improved Node.js. Check this carefully designed quote:


JXcore附带内置的多线程支持,可以在现有节点上启用
。没有额外的
更改的js应用程序... JXcore多线程可能比Node.JS集群模块带来大约30%到50%的可靠性能优势。来自 http://jxcore.com/

我已经尝试过安装它,它确实有效。这就是我现在所能说的,衡量性能和正常运行时间是棘手和精细的。

I already tried to install it and it does really work. That's all I can say for now, measuring performance and up-time is tricky and elaborative.

那么切换到JXcore以及如何做出决定是否真的有优势?

So are there real advantages to switch to JXcore and how to make a decision?

推荐答案

恕我直言,JXcore对以下用例有用;

IMHO, JXcore is beneficial for below use cases;

1 - JXcore适用于手机(iOS,Android ..)

1 - JXcore works on mobile phones (iOS, Android..)

2 - 它可以通过Java,Objective-C,C,C ++应用程序嵌入。

2 - It can be embedded by a Java, Objective-C, C, C++ app.

3 - 与IO相比,MT(多线程)是应用程序在JavaScript领域花费更多时间的胜利者。否则,没有显着差异。 MT工作非常顺利,因为我能够使用node-js代理服务器解决方案多线程而不做任何更改(jx mt代理服务器)

3 - MT(multithreading) is a winner for an application spends more time on JavaScript land comparing to IO. Otherwise, there is no significant difference. MT works very smooth since I was able to use a node-js proxy-server solution multi-threaded without making any change (jx mt proxy-server)

4 - 包装和编译。 ( https://github.com/jxcore/jxcore/blob/master /doc/HOW_TO_COMPILE.md

4 - Packaging and compiling. (https://github.com/jxcore/jxcore/blob/master/doc/HOW_TO_COMPILE.md)

5 - 一些最流行的本机模块内置mt支持,所以你不需要安装它们位于目标机器上。

5 - Some of the most popular native modules come built-in with mt support, so you don't bother installing them on a target machine.

6 - 内置外部存储器和sqlite数据库服务器。 (这是Windows上的救生员)

6 - Built-in external memory store and sqlite database server. (This one is a life saver on Windows)

我也遇到了问题。例如,我需要禁用HTTP头字节大小检查,以使我的应用程序运行。出于某种原因,他们默认添加了额外的安全检查,因此您可能需要稍微更新您的应用程序。

I had a problem also. For example, I needed to disable HTTP header byte size check in order make my application running. For some reason they've added extra security checks by default so you may need to update your application a bit.

更新:

JXcore 现在是一个拥有MIT许可证的开源项目。

JXcore is now an open source project with MIT license.

这篇关于如何在Node.js和JXcore之间进行选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆