Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Update

Hi Roger,

I think you would like to see this, I managed to gain a performance boost of something between 20% to 30% by making message timeout check only once per second, and not on every main loop iteration.

just added this into src/loop.c

before main loop start, on line: 140:

time_t last_message_timeout_check = 0;




and when checking for message timeouts, about line: 328

if(last_message_timeout_check < mosquitto_time()) {
   mqtt3_db_message_timeout_check(db, db->config->retry_interval);
   last_message_timeout_check = mosquitto_time();
}


Regards
Alexandre


On Fri, Mar 27, 2015 at 6:54 PM, Roger Light <roger@xxxxxxxxxx> wrote:
>
> Hello all,
>
> I've been a bit busy arranging buying and selling of houses, so
> apologies that I've been less responsive than usual.
>
> Thanks to all of you who have submitted bug reports recently, I shall
> be making a service (i.e. bugfix) release in the next few days. If
> you've got any problems, now is the time to submit them.
>
> Cheers,
>
> Roger
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev




--

Alexandre Zia
Security
+55 19 3518 5500
+55 19 98153 4618
skype: zia.movile

Back to the top