xScatta Posted June 18, 2016 Share Posted June 18, 2016 Hey Guys! I have small question. When i have table in json, in file, and it weights 1,84mb so when i will load it as variable mytable = fromJSON(thedatafromfile) how much ram and cpu it will take (the table is in resource already)? And when i will use something like mytable[somekey] without repeating whole table to find something cause the script knows which key is what, will it eat much cpu or something? Link to comment
Tomas Posted June 18, 2016 Share Posted June 18, 2016 (edited) As long as it is an array (numerically indexed) I think you will have no trouble. Edited June 18, 2016 by Guest Link to comment
xScatta Posted June 18, 2016 Author Share Posted June 18, 2016 Yes, it is an array, are you sure? Because i have over 10k keys in it. I mean it looks like this TBL = { [1] = {blabla}, [2] = {blabla}, [3] = {blabla}, [4] = {blabla}, [5] = {blabla}, [...] [5426] = {blabla}, [5427] = {blabla}, [5428] = {blabla}, [5429] = {blabla}, } And i think it would take maximum the weight of file in json. Now it's about 1,84mb. So it will take about 1,84mb of ram? Link to comment
xScatta Posted July 11, 2016 Author Share Posted July 11, 2016 It didn't make any problem, close please Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now