I've got a performance problem that I've narrowed down to
applyAndReverse() on a ChangeDescription. My code looks something like:
ChangeDescription changes = changeRecorder.endRecording();
changes.applyAndReverse();
// process changes
change.applyAndReverse();
changeRecorder.beginRecording(Collections.singleton(this));
I first commented out my processing code and that made no difference in
the performance. As soon as I commented out both calls to
applyAndReverse(), my performance problem was gone. I think my
solution will be to write a custom change recorder that that captures
the new state instead of the old state. It won't support rollbacks,
but I hope it will be much faster. Comments?
Bryan