Branch: Tag:

2015-09-10

2015-09-10 13:45:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Use the new ADT.Heap adjust() API.

Improve performance by using the new ADT.Heap adjust() API.

239:    int file_interval_factor,    int stable_time)   { +  inherit ADT.Heap.Element; +     int next_poll;    Stdio.Stat st;    int last_change = 0x7fffffff; // Future...
253:       void create()    { +  Element::create(this);   #if HAVE_EVENTSTREAM    int already_added = 0;    foreach(eventstream_paths;;string p)