I have a VF Controller class with several instance of a wrapper class - something like this:
public Transient mywrapperclass wrapper1 {get;set;}
public Transient mywrapperclass wrapper2 {get;set;}
public Transient mywrapperclass wrapper3 {get;set;}
I was looking to make it cleaner, and wondered if I would be better off with one Map that I reference on the page e.g.
Map<String, mywrapperclass> mywrapperclasses {get;set;}
I could then add each instance of the wrapper to the map, and reference it on the the VF page with the usual VF Map syntax e.g.
mywrapperclasses['wrapper1']
But reading this answer makes me pause - so I was trying to work out if it would improve performance, harm performance or make no difference before I make the changes...