I already have a ThreadLocal
object defined as a class Context
class Context {
.....
some existing fields
.....
}
ThreadLocal<Context> = .....
If I have to add a new boolean field to the above Context class, what would be the performance impact for ThreadLocal
get() and set() operations?