<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Talk%3ALt-trim</id>
	<title>Talk:Lt-trim - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Talk%3ALt-trim"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Talk:Lt-trim&amp;action=history"/>
	<updated>2026-05-31T10:55:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Talk:Lt-trim&amp;diff=46672&amp;oldid=prev</id>
		<title>Unhammer: Created page with &quot;==Alternate implementation methods== Trimming while reading the XML file might have lower memory usage (who knows, untested), but seems like more work, since pardefs are read ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Talk:Lt-trim&amp;diff=46672&amp;oldid=prev"/>
		<updated>2014-02-11T08:36:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Alternate implementation methods== Trimming while reading the XML file might have lower memory usage (who knows, untested), but seems like more work, since pardefs are read ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Alternate implementation methods==&lt;br /&gt;
Trimming while reading the XML file might have lower memory usage (who knows, untested), but seems like more work, since pardefs are read and turned into FST&amp;#039;s before we get to an &amp;quot;initial&amp;quot; state and then attached at the end of regular entries.&lt;br /&gt;
&lt;br /&gt;
[[Image:Product-automaton-intersection.png|thumb|400px|right|product automaton for intersection]]&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;product automaton&amp;#039;&amp;#039;&amp;#039; for intersection, marks as final only state-pairs where both parts of the state-pair are final in the original automata. Minimisation removes unreachable state-pairs. However, this quickly blows up in memory usage since it creates &amp;#039;&amp;#039;all&amp;#039;&amp;#039; possible state pairs first (cartesian product), not just the useful ones.&lt;br /&gt;
&lt;br /&gt;
https://github.com/unhammer/lttoolbox/branches has some experiments, see e.g. branches product-intersection and df-intersection (the latter is the currently used implementation)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Unhammer</name></author>
		
	</entry>
</feed>