Changes between Version 1 and Version 2 of Ticket #36439, comment 7


Ignore:
Timestamp:
Jun 30, 2025, 2:41:17 AM (2 months ago)
Author:
Roelzkie

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36439, comment 7

    v1 v2  
    66> Secondly the way you're iterating over each awaitable serially in a loop prevents any concurrent scheduling execution from taking place thus you most likely wouldn't notice if the event loop was blocked as you're only processing one task at a time. You'd want to buffer up futures and await them all so they can step on each others toes a bit if you hope to catch any interference between them.
    77
    8 Hello, my bad, you are right. I'm executing the code serially with awaitables. I'm putting them all into a task group, and the gap in performance is huge with a `ThreadPoolExecutor`.
     8Hello, my bad, you are right. I'm executing the code serially with awaitables. I put them all into a task group, and the gap in performance is huge with a `ThreadPoolExecutor`.
    99
    1010This is for 100 users only having passwords as their usernames, and I'm using the default `PBKDF2PasswordHasher` hasher. I will also check other hashers later on:
    11 
    12 
    1311
    14121. **Current:** 14138 function calls (14120 primitive calls) in 24.844 seconds
Back to Top