On Sep 13, 2016, at 2:00 PM, Cannon Smith wrote: > I got to wondering how expensive it really is to used named selections > everywhere and then move them to the current selection to do some work on > them and then back again. It turns out that it is really fast if you use CUT > NAMED SELECTION and USE NAMED SELECTION to move it back and forth and it > doesn’t seem to matter how many records are in the named selection. I suspect > that when using these two commands, internally 4D just updates a pointer or > something like that.
You are exactly correct. I remember many years ago at a DEVCON, that was before the 4D Summits, Laurent speaking about named selections and how doing a CUT NAMED SELECTION was super efficient because it just copied a 4 byte pointer to the current selection to another location with a name assigned to it. Same for the USE SELECTION. Internally it is just a quick pointer assignment. This was back with 4D Server v1 and Macintosh 68K CPUs. A great 4D Server machine back then was a Quadra 900 with a 25MHz 68040 processor and 16MB or RAM. Yeah, 16 megabytes. The Quadra 900 had a list price of $8,500 in 1991. Tim ******************************************** Tim Nevels Innovative Solutions 785-749-3444 [email protected] ******************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

