# Filtering TreeViews

**URL:** <https://www.ruby-forum.com/t/filtering-treeviews/119649>\
**Category:** Ruby-Gnome 2\
**Created:** [November 8, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/filtering-treeviews/119649 "2007-11-08T21:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 8, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/filtering-treeviews/119649/1 "2007-11-08T21:37:22Z")

</div>

hi all,

i just tested it and wanted you to know about it:  
i used Gtk::TreeModelFilter.set\_visible\_func to filter my lists, which  
took about 6 second on an amd 4000+ with about 1000 rows by a special  
filtering policy.  
now i changed that to Gtk::TreeModelFilter.set\_visible\_column, so i  
iterate the model when needed and fill the column in milliseconds. and  
TreeView follows that also in milliseconds.  
this is a huge speedup.  
and i thought someone should notice that on the hiki. (after testing it  
if it sounds unbelievable)

thanks for reading

Balint

---

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 10, 2007, 3:43am UTC](https://www.ruby-forum.com/t/filtering-treeviews/119649/2 "2007-11-10T03:43:53Z")

</div>

Sounds interesting to say the least 🙂
