I'm working on a project where I'm reading a binary formatted file and extracting the data in it to form more coherent information that is useful to the program I'm making.
I'm wondering if there are any performance gains(other than ease of editing the script) if I were read in and extract the data from a lua file instead.
4 replies to this topic
#1
Posted 07 December 2010 - 11:20 PM
|
|
|
#2
Posted 08 December 2010 - 02:03 AM
C will be faster than Lua, but if you are reading small binary files it does not actually matter.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 08 December 2010 - 10:08 AM
Thanks, what size binary file would you consider to be 'too large' where it would start to make a performance difference?
512 bytes?
1K?
5K?
512 bytes?
1K?
5K?
#4
Posted 08 December 2010 - 01:03 PM
I was thinking 50MiB+, You should not then worry about files that size, C is faster but loading those files and processing them takes a negligible amount of time in the first place for either, Lua may be easier to write with in the end.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#5
Posted 08 December 2010 - 01:23 PM
I figured as much, thanks for the info :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









