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
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
rowscausing 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.8MiBForce a GC (
GC.start): 210.6MiBLookup First Row (
book.sheets.first.rows.first): 1.247GiBForce a GC (
GC.start): 222.9MiB