]> git.cworth.org Git - sup/commit
add Message#load_from_index! shortcut
authorRich Lane <rlane@club.cc.cmu.edu>
Sat, 22 Aug 2009 18:28:15 +0000 (11:28 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 24 Aug 2009 23:09:49 +0000 (19:09 -0400)
commitb633754b55d6d449dc87634c8e572dbfdb20e0b6
tree62a65313c26b3fa8d94232cf0714f00d96984f04
parente501453dd439a94bc2f09a644fa8be39e4634d0a
add Message#load_from_index! shortcut

Message#parse_header is slow, taking up to 2/3 of the time spent loading
threads in thread-index-mode. This patch adds a shortcut method that the index
can use to efficiently initialize a message.
lib/sup/message.rb
lib/sup/xapian_index.rb