Committer: vsukhanov
LJSUP-7150: add comment about "init_comobj" paramU trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm =================================================================== --- trunk/cgi-bin/LJ/Talk.pm 2010-10-14 07:26:22 UTC (rev 17565) +++ trunk/cgi-bin/LJ/Talk.pm 2010-10-14 07:48:02 UTC (rev 17566) @@ -1071,6 +1071,11 @@ # userpicref -- hashref to load userpics into, or undef to # not load them. # userref -- hashref to load users into, keyed by userid +# init_comobj -- init or not LJ::Comment object for every loaded raw data of a comment. +# by default it is On (true), but in this case it produces a huge overhead: +# LJ::Comment class stores in memory all comment instances and when load +# property for any of a comment LJ::Comment loads all properties for ALL inited comments. +# (!) provide 'init_comobj => 0' wherever it is possible # # returns: # array of hashrefs containing keys: