Skip to content

[Trying Polars] performance lacking when parallel processing #322

Closed

Description

@zain-sohail

I spent a bit of time trying to implement polars to read the dataframes. Here are some things I learnt:

  • The API is similar but also significantly different from pandas so there's a learning curve
  • Not as well documented as pandas
  • The single file read performance is 5x faster than with pandas
  • The performance is fast for reading a single file as it utilizes multiple cores. Hence while reading multiple files in parallel, there's no improvement
  • No h5 reader available. If it were, the polars optimized queries might be useful.

Since our application has no cpu constraints, polars becomes a poor fit. Might still be useful for when we need to do serial reading. And especially if we want to stream data.

Activity

  1. locked and limited conversation to collaborators on Jan 7, 2024
  2. converted this issue into a discussion #323 on Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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