Jump to content


Photo

Loading inventories page by page?

node.js node-steam-tradeoffer-manager

  • Please log in to reply
6 replies to this topic

#1 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 10 April 2018 - 08:22 AM

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, 10 April 2018 - 08:47 AM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,652 posts

Posted 10 April 2018 - 11:30 AM

That won't do any good, you'll need to load the files into memory before you can use them anyway.



#3 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 10 April 2018 - 04:09 PM

https://www.npmjs.co...ge/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, 10 April 2018 - 04:35 PM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,652 posts

Posted 10 April 2018 - 04:48 PM

No, there's no way to load the inventory page by page.



#5 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 10 April 2018 - 06:11 PM

any idea of what todo to lower the memory footprint of the bot?

it's quite a profit killer having to pay for major memory servers

 

And what is required from the item to be submitted to a trade?

can i just submit the asset id or? 


Edited by QuestionRealQuick1, 10 April 2018 - 06:14 PM.


#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,652 posts

Posted 10 April 2018 - 11:47 PM

All you need is the appid + contextid + assetid.



#7 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 11 April 2018 - 06:53 AM

great thanks :) 

-no idea how to go about lowering the memory footprint when loading inventories?







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users