B4X FEED How to search a slow "bottle neck" ?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: How to search a slow \"bottle neck\" ? است. این موضوع تا کنون 17 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to search a slow \"bottle neck\" ?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
17
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi, All

I'm debugging under Windows, connect to all free ones and wait for a data flow of MCU equipment.
So, each COM-port is connected by a class. And actually only one COM-port is active under test recently.

I.e. when a new COM-port is found, connected - collecting the traffic is stared, to a buffer, checking the start\stop markers and parsing the data.
COM-ports speed is fixed just of 9600 baud.
App is B4Xpage-based, 4 pages, main and second (and 2 rarely used utility topmost windows).

But when parsing is started - the app memory consumption is rised from 160 MB to 300+ and freezing beginning.
AsyncStreams should work in non-main thread, as i remember, speed is .... not big, data records frequency into SQLite db is 1....10 records per second only.
If to stop parsing - memory is not freed, but freezing is ended after some seconds only, not immediately flow is ended.

During this freezing the device disconnecting is processed...



 

عقب
بالا