List::UtilsBy::XSを書いてます。 - Life is very short のようなことを今やっています。詳しく Perl APIを理解できている わけではないので、List::Util、List::MoreUtilsを参考にしています。 それらのモジュールでは Light weight callback API(MULTICALL等)が 使われているのですが、'perldoc perlcall'を見ると zip_byとか bundle_byはそれらを使って実装できなさそうです。 そこでリストの処理を XS化する場合のキーポイントと思われる Light weight callback PAIを用いた場合とそうでない場合の比較を 行なってみました。 ソース コールバック関数に配列要素を $_として与え、各結果を戻り値として 返すというものを実装しました。 (私の知識不足で問題