Skip to content

Excessive Memory Allocation Loading Worksheet Rows #111

@zacheryph

Description

@zacheryph

I am noticing excessive temporary memory allocation loading a worksheet. I cannot share said spreadsheet currently. This particular spreadsheet is 5.8MB, single sheet, 50K records. I cannot see anything obvious within rows causing this but it just seems a bit excessive for a 6MB file ;)

Reason I bring this up is it's killing kubernetes pods for us for memory usage when running. I am attempting to bump the limits to get around it.

Anything I can do to help I'm glad to.

Note, memory usage is from Docker stats

Base Rails Console Memory: 168.3MiB
Load Book (book = Creek::Book.new("report.xlsx")): 305.8MiB
Force a GC (GC.start): 210.6MiB
Lookup First Row (book.sheets.first.rows.first): 1.247GiB
Force a GC (GC.start): 222.9MiB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions