<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: util/queue.lua history</title>
    <description>util/queue.lua revision history</description>
    <item>
    <title>util.queue: Convenience functions for empty/full</title>
    <link>http://hg.omfa.de/prosody-hg/log/f50a9746fec0/util/queue.lua</link>
    <description><![CDATA[util.queue: Convenience functions for empty/full]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Sep 2025 16:54:23 +0100</pubDate>
</item>
<item>
    <title>util: Prefix module imports with prosody namespace</title>
    <link>http://hg.omfa.de/prosody-hg/log/d10957394a3c/util/queue.lua</link>
    <description><![CDATA[util: Prefix module imports with prosody namespace]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 17 Mar 2023 16:23:16 +0100</pubDate>
</item>
<item>
    <title>Merge 0.11-&gt;trunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/6a608ecb3471/util/queue.lua</link>
    <description><![CDATA[Merge 0.11-&gt;trunk]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 29 Sep 2020 15:30:48 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: dynamic string buffer</title>
    <link>http://hg.omfa.de/prosody-hg/log/73b8aaf55775/util/queue.lua</link>
    <description><![CDATA[util.dbuffer: dynamic string buffer<br/>
<br/>
Similar to util.ringbuffer (and shares almost identical API). Differences:<br/>
<br/>
- size limit is optional and dynamic<br/>
- does not allocate a fixed buffer of max_size bytes<br/>
- focus on simply storing references to existing string objects where possible,<br/>
  avoiding unnecessary allocations<br/>
- references are still stored in a ring buffer to enable use as a fast FIFO<br/>
<br/>
Optional second parameter to new() provides the number of ring buffer segments. On<br/>
Lua 5.2 on my laptop, a segment is ~19 bytes. If the ring buffer fills up, the next<br/>
write will compact all strings into a single item.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Jun 2020 16:41:31 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: dynamic string buffer</title>
    <link>http://hg.omfa.de/prosody-hg/log/39991e40d1dc/util/queue.lua</link>
    <description><![CDATA[util.dbuffer: dynamic string buffer<br/>
<br/>
Similar to util.ringbuffer (and shares almost identical API). Differences:<br/>
<br/>
- size limit is optional and dynamic<br/>
- does not allocate a fixed buffer of max_size bytes<br/>
- focus on simply storing references to existing string objects where possible,<br/>
  avoiding unnecessary allocations<br/>
- references are still stored in a ring buffer to enable use as a fast FIFO<br/>
<br/>
Optional second parameter to new() provides the number of ring buffer segments. On<br/>
Lua 5.2 on my laptop, a segment is ~19 bytes. If the ring buffer fills up, the next<br/>
write will compact all strings into a single item.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Jun 2020 16:41:31 +0100</pubDate>
</item>
<item>
    <title>util.queue: Update :items() to consistently use private data directly</title>
    <link>http://hg.omfa.de/prosody-hg/log/1bfd28e774db/util/queue.lua</link>
    <description><![CDATA[util.queue: Update :items() to consistently use private data directly<br/>
<br/>
It will perform better this way, and we were accessing private variables already within the iterator.<br/>
<br/>
Replaces 3eea63a68e0f]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 26 Mar 2019 13:54:14 +0000</pubDate>
</item>
<item>
    <title>Backed out changeset 3eea63a68e0f</title>
    <link>http://hg.omfa.de/prosody-hg/log/8d0112413997/util/queue.lua</link>
    <description><![CDATA[Backed out changeset 3eea63a68e0f<br/>
<br/>
Commit included intended changes to loggingmanager]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 26 Mar 2019 13:51:06 +0000</pubDate>
</item>
<item>
    <title>util.queue: Update :items() to consistently use private data directly</title>
    <link>http://hg.omfa.de/prosody-hg/log/3eea63a68e0f/util/queue.lua</link>
    <description><![CDATA[util.queue: Update :items() to consistently use private data directly<br/>
<br/>
It will perform better this way, and we were accessing private variables<br/>
already within the iterator.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 23 Mar 2019 08:52:57 +0000</pubDate>
</item>
<item>
    <title>util.queue: Add 'consume()' convenience iterator</title>
    <link>http://hg.omfa.de/prosody-hg/log/c8b75239846c/util/queue.lua</link>
    <description><![CDATA[util.queue: Add 'consume()' convenience iterator]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 23 Mar 2019 08:47:55 +0000</pubDate>
</item>
<item>
    <title>util.queue: Add luacheck annotations</title>
    <link>http://hg.omfa.de/prosody-hg/log/cb5b14c95b7b/util/queue.lua</link>
    <description><![CDATA[util.queue: Add luacheck annotations]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 18 Oct 2015 21:54:17 +0100</pubDate>
</item>
<item>
    <title>util.queue: Add :items() iterator</title>
    <link>http://hg.omfa.de/prosody-hg/log/56c9bc4ba247/util/queue.lua</link>
    <description><![CDATA[util.queue: Add :items() iterator]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 18 Oct 2015 21:42:33 +0100</pubDate>
</item>
<item>
    <title>util.queue: Allow optional wrap-around when pushing, overwriting oldest unread item</title>
    <link>http://hg.omfa.de/prosody-hg/log/d4a6c9ee4bc5/util/queue.lua</link>
    <description><![CDATA[util.queue: Allow optional wrap-around when pushing, overwriting oldest unread item]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 03 Jun 2015 15:51:07 +0100</pubDate>
</item>
<item>
    <title>util.queue: Small fast FIFO/ringbuffer/queue library</title>
    <link>http://hg.omfa.de/prosody-hg/log/343ca80ceb36/util/queue.lua</link>
    <description><![CDATA[util.queue: Small fast FIFO/ringbuffer/queue library]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 13 May 2015 16:57:27 +0100</pubDate>
</item>

  </channel>
</rss>
