<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="193830" data-post-id="193830">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The <a href="https://github.com/evansiroky/timezone-boundary-builder" rel="nofollow">timezone-boundary-builder</a> has updated the data used by <a href="https://hex.pm/packages/tz_world" rel="nofollow">tz_world</a>.</p>
<p>The data for any user of this<code>tz_world</code> can be updated with the following. The new data will be used the next time the application is restarted.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">mix tz_world.update
</code></pre>
<p>To update the data in a running system (ie without restarting the application), first download the data using the step above.  Then in your application call <code>TzWorld.reload_timezone_data</code> by whichever means is appropriate for your application.</p>
<p><a href="https://hex.pm/packages/tz_world/0.7.1" rel="nofollow">Tz_world version 0.7.1</a> is also published. The only change is to remove tests that tested against a hardcoded data version.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="193830" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-193830" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="193830"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="229079" data-post-id="229079">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s been a year since any functional updates or bug fixes for <a href="https://hex.pm/packages/tz_world" rel="nofollow">tz_world</a> so today I published <code>tz_world version 1.0.0</code>.</p>
<p>Really, the only change is the version number.  Still actively maintained, just no open issues or functional enhancement requests.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="229079" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-229079" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="229079"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="301912" data-post-id="301912">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ohnoimdead" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohnoimdead/120/34237_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ohnoimdead
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Heya, just wanted to drop a note and say thanks for this lib! It’s exactly what I was looking for. Sometimes devs just snatch up open source libs off the shelf and never acknowledge the hard work that people put into them. So thanks! I starred the repo as well. <img src="https://forum.elixirforum.com/images/emoji/apple/+1.png?v=15" title=":+1:" class="emoji" alt=":+1:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="301912" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-301912" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="301912"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="301919" data-post-id="301919">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Kind of you to say - credit goes to <a class="mention" href="/u/kimlai" rel="nofollow">@kimlai</a> as the author, I just maintain it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="301919" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-301919" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="301919"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="329429" data-post-id="329429">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’ve just published <a href="https://hex.pm/packages/tz_world/1.3.3" rel="nofollow">tz_world version 1.3.3</a> that fixes the one warning that was occurring on Elixir 1.17.</p>
<p>I’m thinking about an update that simplifies the library overall in the following ways and would greatly appreciate feedback from any current or potential users:</p>
<ol>
<li>
<p>Remove all the backend options except <code>TzWorld.Backend.EtsWithIndexCache</code> and <code>TzWorld.Backend.DetsWithIndexCache</code>. This would remove the backend options <code>TzWorld.Backend.Memory</code>, <code>TzWorld.Backend.Ets</code> and <code>TzWorld.Backend.Dets</code>.</p>
</li>
<li>
<p>Make the option <code>--include-oceans</code> to <code>mix tzworld.update</code> be the standard and remove the option.  The download is about 10% larger that without oceans. But it means that there is global coverage for timezone resolution.</p>
</li>
</ol>
<p>Thoughts, comments and suggestions welcome.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="329429" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-329429" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="329429"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="387798" data-post-id="387798">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kip" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kip/120/1440_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kip
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>ex_cldr Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’ve just published <a href="https://hex.pm/packages/tz_world/2.1.0" rel="nofollow">tz_world version 2.1.0</a>.</p>
<p>The primary changes are:</p>
<ul>
<li>
<p>The addition of a new backend, <a href="https://hexdocs.pm/tz_world/TzWorld.Backend.SpatialIndex.html" rel="nofollow">TzWorld.Backend.SpatialIndex</a> that implements a pure-Elixir <a href="https://en.wikipedia.org/wiki/R-tree" rel="nofollow">R-tree</a> (Sort-Tile-Recursive packed) index. This index results in substantially faster lookups.</p>
</li>
<li>
<p>File and <code>:json</code> streaming to optimise the memory usage when running <code>mix tz_world.update</code>. This task used to consume a peak of 980Mb. It now consumes a peak of 70Mb.</p>
</li>
</ul>
<p>The reason for the major release bump are:</p>
<ul>
<li>
<p>The removal of two backends that just aren’t good choices: <code>TzWorld.Backend.Memory</code> and <code>TzWorld.Backend.Ets</code>; and</p>
</li>
<li>
<p>The new format of the on-disk data resulting from the new streaming build.</p>
</li>
</ul>
<h3><a name="p-387798-performance-comparisons-1" class="anchor" href="#p-387798-performance-comparisons-1" aria-label="Heading link" rel="nofollow"></a>Performance comparisons</h3>
<p>Benchmarked against the previous backends across a categorised fixture set (dense regions, sparse/large zones, small/thin zones, ocean points with no match, points adjacent to the international date line):</p>
<div class="md-table">
<table>
<thead>
<tr>
<th>Input category</th>
<th>Speedup vs. the next-fastest existing backend</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ocean</code> (no-match)</td>
<td>18.2×</td>
</tr>
<tr>
<td><code>sparse_or_large</code></td>
<td>1.64×</td>
</tr>
<tr>
<td><code>dense</code> (cities)</td>
<td>1.43×</td>
</tr>
<tr>
<td>random uniform</td>
<td>1.42×</td>
</tr>
<tr>
<td><code>small_or_thin</code></td>
<td>1.08×</td>
</tr>
</tbody>
</table>
</div><p>The largest wins are on no-match queries: previously, points in the open ocean caused a full scan of every shape’s bounding box; the R-tree exits at the root.</p>
<h3><a name="p-387798-memory-comparison-of-mix-tz_worldupdate-2" class="anchor" href="#p-387798-memory-comparison-of-mix-tz_worldupdate-2" aria-label="Heading link" rel="nofollow"></a>Memory comparison of <code>mix tz_world.update</code></h3>
<p>Version 2.0 rewrote the data-update pipeline to stream end-to-end. The source zip is downloaded straight to a temp file (no in-memory body), unzipped to disk (no in-memory JSON), parsed in 64 KiB chunks via OTP’s built-in <code>:json</code> module with a feature-diverting decoder callback, and each <code>Geo.Polygon</code> / <code>Geo.MultiPolygon</code> is written to the on-disk index as it is decoded. The full GeoJSON is never resident in memory at any point.</p>
<p>Measured BEAM peak memory of <code>mix tz_world.update</code> on the without-oceans dataset (158 MB GeoJSON, 419 shapes, post-GC sampled):</p>
<div class="md-table">
<table>
<thead>
<tr>
<th>Version</th>
<th>Peak BEAM memory during update</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.x</td>
<td>≈ 920 MB</td>
</tr>
<tr>
<td>2.x</td>
<td>≈ 70 MB</td>
</tr>
</tbody>
</table>
</div> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="387798" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/tz-world-timezone-boundary-builder-update/31054/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-387798" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="387798"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>