{"id":54,"date":"2007-12-16T10:48:33","date_gmt":"2007-12-16T09:48:33","guid":{"rendered":"http:\/\/www.gamlor.info\/wordpress\/?p=54"},"modified":"2021-03-11T09:43:20","modified_gmt":"2021-03-11T08:43:20","slug":"hashtable-should-be-deprecated","status":"publish","type":"post","link":"https:\/\/www.gamlor.info\/wordpress\/2007\/12\/hashtable-should-be-deprecated\/","title":{"rendered":"Hashtable Should Be Deprecated"},"content":{"rendered":"<p>The &#8220;Hashtable&#8221; has always been a thorn in my side. Well not the class itself, but the people who used it all the time instead of &#8220;HashMap&#8221;. &#8220;HashMap&#8221; is the god damn standard implementation. If you really need a synchronized Map, you have to be anyway extremely carefull what you&#8217;re doing.<\/p>\n<p>Now, since Java 5.0, there is a better thread-safe implementation of an Map, called &#8220;ConcurrentHashMap&#8221; in the java.util.concurrent-package. It is way better than the &#8220;Hashtable&#8221;, because it doesn&#8217;t just block on every operation. It uses smart algorithms to lock only if really needed.<\/p>\n<p>So in my opinion, the &#8220;Hashtable&#8221; doesn&#8217;t have any great use anymore. So I think &#8220;Hashtable&#8221; should be marked as deprecated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;Hashtable&#8221; has always been a thorn in my side. Well not the class itself, but the people who used it all the time instead of &#8220;HashMap&#8221;. &#8220;HashMap&#8221; is the&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[15],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":1,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":3770,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/54\/revisions\/3770"}],"wp:attachment":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}