java - Caching objects for later reuse to avoid persistence to recreate them -


i have idea of caching objects have been created slight performance gain. types of objects i'm thinking of stuff player objects in game. think beneficial have cached copy of player ready avoid io/persistence.

the idea sounds great have issues(?) guess idea. player data stored on sql database. if make change database, cached copy on server different. run task check objects up-to-date there no point in initial idea.

could have advice on should do?


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -