Jump to content
McKay Development

Loading inventories page by page?


Recommended Posts

Hello am trying to reduce the memory footprint of my bot.

it's hitting 4-6gb at times quite high.

 

Most of it happens on inventory loading 

 

so my idea was if there was a way to load the inventory page by page

and store the data in files rather than server memory

 

is there anything in this that can load an inventory page by page? 

Edited by QuestionRealQuick1
Link to comment
Share on other sites

https://www.npmjs.com/package/line-by-line

 

beside that i could also only keep the required things, haven't done any testing of this yet as i need the page thing first

guessing you rly only need the assetid of the item and some other basic info or something 

 

-is there a way to load the inventory page by page? or nah?

Edited by QuestionRealQuick1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...