Code Monkey home page Code Monkey logo

Comments (3)

chexiongsheng avatar chexiongsheng commented on May 27, 2024

在node要多久呢?
puerts下node由于要配合ue,要比正常node的io慢一些。

from puerts.

cesarzero avatar cesarzero commented on May 27, 2024

在node要多久呢? puerts下node由于要配合ue,要比正常node的io慢一些。

第一张图用的puerts_nodejs版本,第二张图用的纯nodejs 。 90M文件 ,puerts_nodejs 版用时15秒,普通nodejs 用时2秒 。我试了超过GB以上的文件, 文件越大,他们之间所用时间差异会非常f大。 本来想利用js来避开UE C++一些网络相关的繁琐步骤= .= 我看网上文章也说明了如何优化puerts 的IO http://www.manongjc.com/detail/60-fkdtlbncqoqqeot.html 看来只能先把网络和IO的部分移到C++里面去,看看大佬这块内容后续还有没有优化的空间

from puerts.

chexiongsheng avatar chexiongsheng commented on May 27, 2024

差不多,我之前测试是6倍的差距。
主要是脚本要在主线程中执行,需要通过GraphTask跑,延迟比较大。

from puerts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.