insaf021 opened a new pull request, #358: URL: https://github.com/apache/commons-math/pull/358
`OpenIntToDoubleHashMap` and `OpenIntToFieldHashMap` decide when to resize from the live size alone, so put/remove churn of distinct keys (`setEntry(i, 1.0); setEntry(i, 0.0)` for i up to 999 on `new OpenMapRealVector(1000)`, or the same on `new OpenMapRealMatrix(100, 100)`) turns every FREE slot into REMOVED and the next lookup or insert of an absent key probes forever; this counts removed slots and rebuilds the table once live plus removed entries pass the load factor, doubling it only when the live entries need the room. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
