0 votes

I need to read large about of data and currently i am doing that from .txt file and then parsing text string to JSON dictionary, the problem is that i want to make this in the most optimized way for ram. I suppose that after parsing string to json godot is storing result in ram memory and i would like that data can be read directly from script that is from hard-drive memory.
So my question is what is the best way to achieve this supposing that i didn't say something stupid earlier?

in Engine by (15 points)

1 Answer

+1 vote
Best answer

Just add it to your project.

Godot Resource loader only loads it once and saves the reference.

When you call load again, it will reference the last save.

by (433 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.