Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  13 Jan 2021, Isaac Labrie Boulay, Forum, poll_event() is very slow. 
    Reply  13 Jan 2021, Konstantin Olchanski, Forum, poll_event() is very slow. 
       Reply  15 Jan 2021, Isaac Labrie Boulay, Forum, poll_event() is very slow. 
    Reply  13 Jan 2021, Stefan Ritt, Forum, poll_event() is very slow. 
       Reply  14 Jan 2021, Pintaudi Giorgio, Forum, poll_event() is very slow. 
       Reply  14 Jan 2021, Isaac Labrie Boulay, Forum, poll_event() is very slow. 
          Reply  08 Feb 2021, Konstantin Olchanski, Forum, poll_event() is very slow. 
Message ID: 2074     Entry time: 13 Jan 2021     In reply to: 2071     Reply to this: 2075   2076
Author: Stefan Ritt 
Topic: Forum 
Subject: poll_event() is very slow. 
Something must be wrong on your side. If you take the example frontend under

midas/examples/experiment/frontend.cxx

and let it run to produce dummy events, you get about 90 Hz. This is because we have a

  ss_sleep(10);

in the read_trigger_event() routine to throttle things down. If you remove that sleep, 
you get an event rate of about 500'000 Hz. So the framework is really quick.

Probably your routine which looks for a 'lam' takes really long and should be fixed.

Stefan
ELOG V3.1.4-2e1708b5