{"action":"created","issue":{"url":"https://api.github.com/repos/jankotek/MapDB/issues/474","labels_url":"https://api.github.com/repos/jankotek/MapDB/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/jankotek/MapDB/issues/474/comments","events_url":"https://api.github.com/repos/jankotek/MapDB/issues/474/events","html_url":"https://github.com/jankotek/MapDB/issues/474","id":65615429,"number":474,"title":"could lock be enhanced by StampedLock ?","user":{"login":"bwzhang2011","id":749788,"avatar_url":"https://avatars.githubusercontent.com/u/749788?v=3","gravatar_id":"","url":"https://api.github.com/users/bwzhang2011","html_url":"https://github.com/bwzhang2011","followers_url":"https://api.github.com/users/bwzhang2011/followers","following_url":"https://api.github.com/users/bwzhang2011/following{/other_user}","gists_url":"https://api.github.com/users/bwzhang2011/gists{/gist_id}","starred_url":"https://api.github.com/users/bwzhang2011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwzhang2011/subscriptions","organizations_url":"https://api.github.com/users/bwzhang2011/orgs","repos_url":"https://api.github.com/users/bwzhang2011/repos","events_url":"https://api.github.com/users/bwzhang2011/events{/privacy}","received_events_url":"https://api.github.com/users/bwzhang2011/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T06:25:42Z","updated_at":"2015-04-01T14:09:29Z","closed_at":"2015-04-01T14:09:29Z","body":"@jankotek , from mapdb, there's a lot of usecases for ReentrantReadWriteLock for write lock and read lock.\r\nas JDK8 or jsr166e brought in the StampedLock  which could help improve for lock speed for single thread or multiple threads use cases. and could such be brought in to support that, maybe mapdb could add more branch to support higher JDK for performance.\r\n"},"comment":{"url":"https://api.github.com/repos/jankotek/MapDB/issues/comments/88499063","html_url":"https://github.com/jankotek/MapDB/issues/474#issuecomment-88499063","issue_url":"https://api.github.com/repos/jankotek/MapDB/issues/474","id":88499063,"user":{"login":"jankotek","id":359021,"avatar_url":"https://avatars.githubusercontent.com/u/359021?v=3","gravatar_id":"","url":"https://api.github.com/users/jankotek","html_url":"https://github.com/jankotek","followers_url":"https://api.github.com/users/jankotek/followers","following_url":"https://api.github.com/users/jankotek/following{/other_user}","gists_url":"https://api.github.com/users/jankotek/gists{/gist_id}","starred_url":"https://api.github.com/users/jankotek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jankotek/subscriptions","organizations_url":"https://api.github.com/users/jankotek/orgs","repos_url":"https://api.github.com/users/jankotek/repos","events_url":"https://api.github.com/users/jankotek/events{/privacy}","received_events_url":"https://api.github.com/users/jankotek/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T14:09:29Z","updated_at":"2015-04-01T14:09:29Z","body":"I run benchmarks and `StampedLock` was much slower compared to `ReentrantReadWriteLock`. There are cases where upgrade from read lock to write lock would be useful.\r\n\r\nAlso MapDB depends on JDK6 (android), I have no plans yet to bump minimal version required yet. I seen some project on Google Code. \r\n\r\nFor single threaded use one can disable locks completely, it is already in 2.0 branch. \r\n\r\nNot going to implement `StampedLock` in near future."}}