This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20890

Summary: Poor performance of Association.addLink()
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Svata Dedic 2002-02-26 14:41:11 UTC
I have a 1:N association with a large linkset (~ 15k). My code generates model
data in a bulk operation and I found out that about 37% of the time was spend in
Association.addLink() implementation.
Comment 1 Martin Matula 2002-10-16 16:41:09 UTC
checking for upper multiplicity violation was poorly implemented by
checking size of the whole collection. I have fixed this so now the
addLink performance should be acceptable.