RE: sorting output
RE: sorting output
- Subject: RE: sorting output
- From: <email@hidden>
- Date: Mon, 23 Aug 2004 09:44:29 +0200
- Thread-topic: sorting output
Hi!
> Somebody correct me if I'm wrong (good possibility), but I *think* that > returning the page instead of returning null increases memory
> requirements (which you probably don't have to worry about yet).
> Returning null just gives what's already in memory.
What you should return is: context().page()
This gives you the current page. There is no reason for this to use up memory as you recycling the current page rather than creating a new one.
Returning null gives you behavior identical in every aspect. Yet the word out there is that you will get marginally better performance by returning context().page()
As a side note you should never "return this". As this will get you the current component which may not be the page level component.
Pierre
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.