On 6 Mar 2018, at 17:24, Richard Frith-Macdonald <richard.frith-macdon...@theengagehub.com> wrote: > > I think the -drain method name is unintuitive. To me it sounds like it ought > to do the same as the gnustep-specific -emptyPool method (a more efficient > equivalent to draining/releasing the pool and immediately creating a new one).
-drain was introduced with GC, where -release was optimised away in either the compiler or the runtime and never delivered. It allowed the GC implementation to use autorelease pools as a hint that there were a lot of short-lived objects to delete and have the same code work in non-GC mode. ARC fixed this a lot better by introducing the @autoreleasepool syntax, and should be used in all new code. David _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev