-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.7.0 breaking on reading CSV files from S3 or local folder #378
Comments
Potentially related to #374. |
Has anyone found a workaround for this? Looks like downgrading roo to 2.6.0 works, but 2.7.0 is way more performant than 2.6.0 |
chopraanmol1
added a commit
to chopraanmol1/roo
that referenced
this issue
Oct 5, 2018
### Summary Fixes roo-rb#378 and roo-rb#374 (Introduced in roo-rb#368) ### Benchmark ``` file_name = 'test/files/Bibelbund.csv' MemoryProfiler.report{ Roo::Spreadsheet.open(file_name).tap{|x|(2..x.last_row).each{|i| x.row(i)}} } puts Benchmark.measure{ Roo::Spreadsheet.open(file_name).tap{|x|(2..x.last_row).each{|i| x.row(i)}} } ``` Master ``` Total allocated: 39705265 bytes (561479 objects) Total retained: 768 bytes (4 objects) 0.300000 0.000000 0.300000 ( 0.304877) ``` Modified: ``` Total allocated: 16952085 bytes (234487 objects) Total retained: 768 bytes (4 objects) 0.190000 0.000000 0.190000 ( 0.181199) ```
chopraanmol1
added a commit
to chopraanmol1/roo
that referenced
this issue
Oct 5, 2018
### Summary Fixes roo-rb#378 and roo-rb#374 (Introduced in roo-rb#368) ### Benchmark ``` file_name = 'test/files/Bibelbund.csv' MemoryProfiler.report{ Roo::Spreadsheet.open(file_name).tap{|x|(2..x.last_row).each{|i| x.row(i)}} } puts Benchmark.measure{ Roo::Spreadsheet.open(file_name).tap{|x|(2..x.last_row).each{|i| x.row(i)}} } ``` Master ``` Total allocated: 39705265 bytes (561479 objects) Total retained: 768 bytes (4 objects) 0.300000 0.000000 0.300000 ( 0.304877) ``` Modified: ``` Total allocated: 16952085 bytes (234487 objects) Total retained: 768 bytes (4 objects) 0.190000 0.000000 0.190000 ( 0.181199) ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After updating from 2.5.1 to 2.7.1 a CSV reading with Roo broke in our application. I traced it to 2.6.0 working fine and then 2.7.0 breaking.
Stack trace
Contents of roster_01012017.csv Stack trace
Rails console showing error and stack trace
The text was updated successfully, but these errors were encountered: