Re: [Rails-core] Re: Segmentation fault while running tests for latest Rails 4.2

2015-08-23 Thread Meghali
Thanks Rishav and Ryan for responding. I am following up for this on ruby-on-rails-talk community as well as on stack-overflow already. -Meghali On Monday, 24 August 2015 11:39:38 UTC+5:30, Ryan Bigg wrote: > I think that Meghali was in the right here. This is most definitely a core > framewo

Re: [Rails-core] Re: Segmentation fault while running tests for latest Rails 4.2

2015-08-23 Thread Ryan Bigg
I think that Meghali was in the right here. This is most definitely a core framework development question. On Mon, Aug 24, 2015 at 4:08 PM, Rishav Rastogi wrote: > Hi Meghali, > Please use the ruby-on-rails-talk google group or stackoverflow to post > this question. This group is for the discus

Re: [Rails-core] Re: Segmentation fault while running tests for latest Rails 4.2

2015-08-23 Thread Rishav Rastogi
Hi Meghali, Please use the ruby-on-rails-talk google group or stackoverflow to post this question. This group is for the discussions related to the development *of *the Rails framework, not *with.* Thanks Rishav On Mon, Aug 24, 2015 at 11:28 AM, Meghali wrote: > In addition to the details abov

[Rails-core] Re: Segmentation fault while running tests for latest Rails 4.2

2015-08-23 Thread Meghali
In addition to the details above, I would like to mention here that I am getting this specific issue on Power system (ppc64le). Let me know if anyone has seen similar problem. Thanks! On Tuesday, 4 August 2015 20:39:29 UTC+5:30, Meghali wrote: > Hi All, > > I am trying to build Rails from sour

Re: [Rails-core] Feature suggestion: Use symbols internally with HashWithIndifferentAccess

2015-08-23 Thread Rafael Mendonça França
Thank you for the suggestion? Could you explain what advantages this change will bring? I think we can change but it is a backward incompatible change and we really a good reason to do so. On Sun, Aug 23, 2015, 11:39 Leslie Hoare wrote: > Currently HashWithIndifferentAccess stores using string k

Re: [Rails-core] String Allocation and Memory Bloat in ActiveRecord Objects

2015-08-23 Thread richard schneeman
I appreciate people pointing out slow spots. I'm not the most quallified to speak about AR but I'll try to help with the proposed patch. You can get a bit more speed by taking out the hash lookup: ```ruby require 'benchmark/ips' var = "world".freeze hash = { var => "hello #{var}".freeze}

[Rails-core] String Allocation and Memory Bloat in ActiveRecord Objects

2015-08-23 Thread alexander . maznev
Hello, I've been trying to track-down a pretty significant memory bloat issue with ActiveRecord objects. Running some generic experiments e.g. an empty model with 6 enum_fields, created_at, updated_at - and fetching 72000 of these with ActiveRecord from a Postgres Database allocates approximate

[Rails-core] Feature suggestion: Use symbols internally with HashWithIndifferentAccess

2015-08-23 Thread Leslie Hoare
Currently HashWithIndifferentAccess stores using string keys, and any symbols passed in get converted to strings. As I understand it, this was due to the fact that in earlier versions of Ruby, symbols would not get garbage collected and would thus stick around for the lifetime of the process.