add dynamic property per object , slow GC
one I need add dynamic property to per object , when I create a large number of objects, my JVM memory increases significantly, resulting in a lot of full GC. this is my test code: class Test { static class A { A() { def mc = new ExpandoMetaClass(A, false, true) mc.setProperty(“name”, UUID.randomUUID().toString()) mc.initialize() this.metaClass […]