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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

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