Android Question Logging for next statement issue

Discussion in 'Android Questions' started by Scantech, May 24, 2019.

  1. Scantech

    Scantech Well-Known Member Licensed User

    I was experimenting with for next statement using log. Somehow, it will not log every counter and will not display the time and size of list after the next statement has been completed.

    See example attached.

    this was experimented with Emulator. I have not yet tried it with real device.

    Attached Files:

  2. Scantech

    Scantech Well-Known Member Licensed User

    also i noticed setting it to 200 will complete the task but it is awfully slow using log then not using it. The time delay with log is 50 ms verses 0 ms without it. Will adding logs pose an issue with delay?
  3. Scantech

    Scantech Well-Known Member Licensed User

    Just tested it with real device. It did complete all 2500 counters everytime, but adding log in next statement will cause 464 ms delay vs 2 ms without it. I never knew about logs causing delay issues. This was in release mode. I need to do some log removal cleaning.
  4. Erel

    Erel Administrator Staff Member Licensed User

    Have you tested it in release mode? Otherwise the performance numbers have no meaning.
  5. Scantech

    Scantech Well-Known Member Licensed User

    Yes it was in release mode with real device. There is some delays using logs in loops. It is not recommended to use them when releasing the app.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice