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

python - Best design pattern for collection of objects -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

go - serving up pdfs using golang -