Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11077 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

[PATCH] Avoid cloning in AR::Base#attributes_before_type_cast

Reported by: juanjo.bazan Assigned to: nzkoz
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: clone activerecord base attributes_before_type_cast
Cc:

Description

If cloning is not necessary, avoiding calls to Kernel#clone from ActiveRecord::Base#attributes_before_type_cast should improve apps performance.

Attachments

avoid_cloning.diff (1.2 kB) - added by juanjo.bazan on 02/11/08 12:36:20.

Change History

02/11/08 12:20:01 changed by juanjo.bazan

  • summary changed from Avoid cloning in AR::Base#attributes_before_type_cast to [PATCH] Avoid cloning in AR::Base#attributes_before_type_cast.

02/11/08 12:36:20 changed by juanjo.bazan

  • attachment avoid_cloning.diff added.

02/11/08 21:02:21 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8858]) Avoid cloning in Base#attributes_before_typecast. Closes #11077 [juanjo.bazan]