Skip to content

Is PYTHONUNBUFFERED=TRUE a good idea? #319

Closed
@MartinThoma

Description

@MartinThoma

I had the experience that printing to STDOUT with Python is way slower than writing to a file. I think this is due to buffering.

Due to AWS Cloudwatch only logging the STDOUT / STDERR, Sagemaker projects have to print instead of writing to files.

Is it really a good idea to have PYTHONUNBUFFERED=TRUE (and is it really TRUE or rather 1?). Will performance suffer from this?

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