Author zyasoft
Recipients amak, wdroste, zyasoft
Date 2015-03-11.21:50:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
William, one thing: did you try changing the concurrency level in MapMaker? We are using the default, which is 4, which may explain the lock contention you are seeing. If you haven't, could you try running your performance tests with a higher level?

Per the docs, "a significantly lower value can lead to thread contention"

So you might want to try something like

    public static synchronized PyType fromClass(Class<?> c, boolean hardRef) {
        if (class_to_type == null) {
            class_to_type = new MapMaker().concurrencyLevel(16).weakKeys().weakValues().makeMap();
            addFromClass(PyType.class, null);

We might want to make this the default regardless, given that this is a singleton.
Date User Action Args
2015-03-11 21:50:01zyasoftsetmessageid: <>
2015-03-11 21:50:01zyasoftsetrecipients: + zyasoft, amak, wdroste
2015-03-11 21:50:01zyasoftlinkissue2230 messages
2015-03-11 21:50:00zyasoftcreate