< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #13721 has been updated by shugo (Shugo Maeda).
Status changed from Open to Assigned
Assignee set to shugo (Shugo Maeda)
----------------------------------------
Feature #13721: [PATCH] net/imap: dedupe attr keys in Net::IMAP::FetchData
https://bugs.ruby-lang.org/issues/13721#change-65850
* Author: normalperson (Eric Wong)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
* Target version:
----------------------------------------
Since attr hash keys are frequently reused, it makes sense to
deduplicate them up front.
This saves one allocation per-attr, per-message. When running
imap.fetch(1..-1, 'UID') on a mailbox with 30000 messages;
this saves 30000 allocations.
This relies on the String#-@ change in [Feature #13077]
* net/imap: use frozen, deduplicated string in attr name (key)
Trivial (1-byte change :), I may commit in a few days if no response.
---Files--------------------------------
0001-net-imap-dedupe-attr-keys-in-Net-IMAP-FetchData.patch (1 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>