]> Sergey Matveev's repositories - public-inbox.git/commit
ds: lazy initialize wbuf_off
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:07 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:25 +0000 (05:26 +0000)
commitddba176a763dd7f36e3aa53b87907c6226207efa
tree091b73e1de3fa79a04918a28ca2210e4b3e29dfa
parent8c8b5c28b20b4d8ceee89312b1cc9e4602a7beb3
ds: lazy initialize wbuf_off

Since Perl 5.10+, "fields" makes a restricted hash; not a
compile-time-defined array (struct) with fixed offsets as
it did in Perl <= 5.8.

Thus in-use fields cost memory, and since the write buffer
offset is rarely needed; stop relying on it.
lib/PublicInbox/DS.pm