Bug 63657: Optimize onDocumentWrite() to not do the full re-assignment if not necessary at all, also use getCArray() instead of getCList() as access-operations are much quicker this way