Le 31 mars 09 à 21:40, Thomas Tempelmann a écrit:
On Tue, Mar 31, 2009 at 21:13, Christian Dorn <realbasic@online.de>
wrote:
What change can prevent deleting in an order rather than
another order?
Charles, can you provide us with some background, why a downto-loop
is
slower than a to-loop in this case?
Actually, I am the expert on this (I actually wrote the current code
that RB's framework uses on the Mac for this):
The old Mac OS API to read a directory supported to index any item in
the dir at the same speed. The new code that RB now uses, supports
only a forward iteration over the directory.
It's the api which has gone backward, in fact.
Any improvement in preventing backward iteration?
Since the same rule (forward lookup faster than reverse) has always
been true for Windows and Linux because those OS never had the fast
direct-indexed lookup as the old OS API did, there's not much sense it
making a big effort in keeping to support this old way by adding
"smart" caching which only possibly lead to new problems. Instead, we
decided to encourage to use only forward-iteration now, which is the
best solution for all platforms now.
Good enough of an explanation?
Well, you have explained it well, but I'm not happy with this new way
(it's simply preventing to make nicer apps for Mac OS X because other
OSes are too fool to adopt more flexible APIs).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|