はやみずです 今考えているコードの書き直しの1つが、タイムライン表示の部分です。
現状では、erase-bufferで一度バッファの内容を全部消して、全部描き直すと いう効率の悪い実装になっています。 で、今考えている方法はmarkerを使った実装です。各発言の先頭にmarkerを打っ ておき、発言のidとペアで保持しておきます。そうすれば、新しい発言が読み 込まれたときに、バッファのどの位置に挿入すればよいかがわかるので、わざ わざ再描画する必要がなくなります。 また、現在のj/k移動はfaceを頼りに移動をしていますが、markerが各発言の先 頭に打たれていればfaceを見ずとも移動できるようになります。 ---- Yuto Hayamizu Master's degree student at Kitsuregawa Laboratory Department of Information and Communication Engineering Graduate School of Information Science and Technology University of Tokyo ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ twmode-users mailing list twmode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/twmode-users