Skip to content

Why threads were faster than not threads in threads calculation example  #15

@immunochomik

Description

@immunochomik

This might be a wired way of reaching out but, I have checked why the threaded example for 05-threads/cpu_attempt/compute_threaded.py is ~15% faster than non threaded one.
Basically the threaded version does computation on floats because of the devisions you make, whereas synchronous example uses ints. So apparently the floats computations are a bit faster than integer ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions