Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2663B200BB3 for ; Wed, 2 Nov 2016 18:28:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 21942160AFB; Wed, 2 Nov 2016 17:28:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63FF3160AF0 for ; Wed, 2 Nov 2016 18:28:55 +0100 (CET) Received: (qmail 94081 invoked by uid 500); 2 Nov 2016 17:28:54 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 94066 invoked by uid 99); 2 Nov 2016 17:28:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 17:28:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BF6A4C6BFA for ; Wed, 2 Nov 2016 17:28:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kLEiV8OWa0-i for ; Wed, 2 Nov 2016 17:28:52 +0000 (UTC) Received: from SNT004-OMC2S13.hotmail.com (snt004-omc2s13.hotmail.com [65.55.90.88]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DE5C25F22F for ; Wed, 2 Nov 2016 17:28:51 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com ([65.55.90.73]) by SNT004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 2 Nov 2016 10:28:45 -0700 Received: from AM5EUR02FT022.eop-EUR02.prod.protection.outlook.com (10.152.8.56) by AM5EUR02HT120.eop-EUR02.prod.protection.outlook.com (10.152.9.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.6; Wed, 2 Nov 2016 17:28:43 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com (10.152.8.52) by AM5EUR02FT022.mail.protection.outlook.com (10.152.8.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.6 via Frontend Transport; Wed, 2 Nov 2016 17:28:42 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) by VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) with mapi id 15.01.0693.009; Wed, 2 Nov 2016 17:28:42 +0000 From: Adel Boutros To: "users@qpid.apache.org" Subject: [Proton-c] [0.14.0] [0.15.0] Event_loop injection is very slow compared to timer schedule Thread-Topic: [Proton-c] [0.14.0] [0.15.0] Event_loop injection is very slow compared to timer schedule Thread-Index: AQHSNS3ObTLWehZSoUmhI4QccQJ1Sw== Date: Wed, 2 Nov 2016 17:28:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: qpid.apache.org; dkim=none (message not signed) header.d=none;qpid.apache.org; dmarc=none action=none header.from=live.com; x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [VQkzUNzrInCIO/XcpJVadBl78DuokLn1MgJLGpqadzQ=] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;AM5EUR02HT120;7:coYFIsGJE1VoBmSBizVJMI76/a3rS/kVc/bimFT2Ep1CNjMGGu0YSXmHBe6aPgPDJUjcm6xiQ2FOC4ktiBm9iJ8ch27X6yQBNRnvP0YdMEy1WuhFj0MGUURbAMWRHyW1Ow7fyJAIB/CZC9O4OJjrRiugJlczqEz1Qpy/HQWRKYLRu2qLo+fMGLuC16fmdrp2wECQheLUYvJEQEBnyA29rOY+uT0HSpOHnI4s2jVH5fvTCRcf4ZAqyY1tDf2/1BZHDDhvhIfeZlbtRXTAnjAPPUoht3CxpNqCKukI5tY1DygHOQ8tVqA3vmXRVtJjo/pxBB2u0jCOH6wy1Y4LIopC7exk3dxfqLX5/cldblpbcd0= x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900003);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5EUR02HT120;H:VI1PR0901MB0893.eurprd09.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 559712da-8381-451c-39df-08d40345b11a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(1601124038)(1603103098)(1601125047);SRVR:AM5EUR02HT120; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015012)(82015046);SRVR:AM5EUR02HT120;BCL:0;PCL:0;RULEID:;SRVR:AM5EUR02HT120; x-forefront-prvs: 0114FF88F6 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_VI1PR0901MB0893460D30BC085A83F26DBBCDA00VI1PR0901MB0893_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2016 17:28:42.2853 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT120 X-OriginalArrivalTime: 02 Nov 2016 17:28:45.0165 (UTC) FILETIME=[9039F1D0:01D2352E] archived-at: Wed, 02 Nov 2016 17:28:56 -0000 --_000_VI1PR0901MB0893460D30BC085A83F26DBBCDA00VI1PR0901MB0893_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, In Proton 0.12.2, we were able to inject events from other threads to the m= essaging_handler thread by calling timer.schedule indefinitely and queues s= toring messages to send. With Proton 0.14.0, We have implemented proton::thread_safe::event_loop() w= hich should replace the above timer.schedule. We have noticed our unit tests are 1 000 times slower with the event loop m= echanism We have tried having an event_loop which does nothing (Test takes 1254 mill= iseconds instead of 4 milliseconds). We also tried with Proton 0.15.0 but it didn't change a thing. Are you aware of such performance regression? How can we analyze it? Regards, Adel --_000_VI1PR0901MB0893460D30BC085A83F26DBBCDA00VI1PR0901MB0893_--