Apache OpenOffice (AOO) Bugzilla – Issue 118449
notifyListeners() method in io/source is called during each IPC and eats much time
Last modified: 2016-10-23 18:34:34 UTC
notifyListeners() in ./source/connector/ctr_socket.cxx and ./source/acceptor/acc_socket.cxx takes a mutex, copies a hash_set and then iterates over the hash_set. This method seems to be called during each IPC (if not multiple times per IPC). Copying a hash_set is very expensive, as is iterating over a hash_set. Even if the hash_set is empty, it takes a considerable amount of CPU cycles. The hash_set in these methods is filled by XStreamListener::addStreamListener. Within the AOOo code base, I only found implementers of this method, but noone that's actually calling it. I'd suggest the following: 1) remove the functionality -> major IPC speedup 2) change code from hash_set to a normal vector, optimize code to check vector size before doing anything
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
The description sounds more like an Enhancement request than an actual defect. Changing Issue Type to Enhancement.