<p>Tested: some speedup is possible even with mutex. 625s -> 425s (pending ways 98s -> 56s). Used 4 threads on moble Intel i7 Haswell 4200u (2 real cores).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/pull/498#issuecomment-155529121">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7pC1Jb1UKZ-1r0AlkKtaTG--Md3Kks5pEjQegaJpZM4GeIs1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/pull/498#issuecomment-155529121"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>