Menu

#297 loadstring() too slow.

open
nobody
None
2017-03-11
2017-01-26
Anonymous
No

Originally created by: bugcaptor

The performance of Lua's loadstring () function in Gideros is very slow. I think it's because of the addition of macro features. Loading a large data table is 20 times slower than cjson. (A json data file with the same contents), but when I test it with pure lua, the difference is about 1.7 times. (Based on PC environment) If you roll back the llex.c code that added the macro function, it will be narrowed to about 1.7 times. It looks like it needs to be fixed or rolled back to be similar in performance.

Maybe it will also affect the speed of a typical Lua script loading?

Discussion

  • Anonymous

    Anonymous - 2017-01-27

    Originally posted by: hgy29

    @Nlcke, can you look at that one ?

     
  • Anonymous

    Anonymous - 2017-02-25

    Originally posted by: Nlcke

    @bugcaptor, attach your data table for tests.

     
  • Anonymous

    Anonymous - 2017-03-11

    Originally posted by: SinisterSoft

    @bugcaptor Can you try again with the 2017.3.1 version - Macros have been altered and it might be fixed - please try on export too and it may act differently that in the player.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.