robfig / cron

a cron library for go
MIT License
13.14k stars 1.63k forks source link

performance wise question #507

Open viseth opened 1 year ago

viseth commented 1 year ago

Hi,

Anyone has experienced issues or performance issue when running multiple cron ?

I wondering whether is it more efficient in terms of CPU, MEM consumption to initialize mulitple cron instead of a single one that will hold all variety of cron job.

var myCron1 = cron.New() var myCron2 = cron.New() var myCron3 = cron.New() myCron1.Start() myCron2.Start() myCron3.Start()

I find it easier to have multiple cron to separated different type of jobs at a cost of code duplication.

Any insight ?